prototype for search and filter