Nucleating heterogeneities and glass formation