Deep infrared studies of massive high redshift galaxies