added cross-correlation function to spectra