printing centroid