improving search functionality