adjusted threshold; added KNN error file