added kmeans and stuff - to be commented out