small modifications. do kmeans center finding with 1000x n_clusters