work on search functionality