removed used of knnsearch