added spectral smoothing