upgrading spectral clustering