change functionality of centroid