finished new find_centroid