knn, updated logistic