fixed kNN to reflect recent changes from desktop