built out the search function