modifiing the kNN file but stil unfinished