part of spectral clustering