spectra script updated