sort of fixed centroid stuff