fixing searching