Effect of the surface heterogeneities in the atmospheric boundary layer