the latest

not sure it even compiles
kmeans workaround