getting all the centroids