search functionality adjusted