centroid data is now saved as well