updated centroids selection