updating kmeans clustering case