cleaned kmeans