minor kmeans touchup