fixed the searching bug
done tonight