improved spectral matching