start draft revision of kmeans clustering