added knn method
ignore pdfs