center renamed to centroid