Correlation effects in the electronic structure of high Tc superconductors