changes to search functionality