working on search functionality