first draft of search functionality