failed code for search bar
failed search function #2