updating KMeans