added centroid based guess