changes in frontend of KMeans