rendering centroids, but computing them improperly