function call for search still not working