added spectra plotting