added spectral clustering for location matrix