add area and centroid calculation