implemented search filtering