added input to filter creation switch statement in processQuery