changes to make kmeans run