rest of kNN app