first draft at search filtering