switched so kmeans goes first