saving the spectra