search functionality modified