kmeans api change