changed filter to queryTerms