Variation of discrete spectra