When the atoms are brought together to form a solid, these discrete energy levels become perturbed through quantum mechanical effects, and the many electrons in the collection of individual atoms occupy a band of levels in the solid called the valence band .