working online vm with knn added