working on spectral kernel