changes to make_spectra_new