improve KNN notebook