Effects of AGN feedback on ΛCDM galaxies