modified filter query