centroid added

haven't tested it yet