Kmeans cleanup

shouldnt this be protected?