updates to spectra making routines