centroids work almost done