modify query conditions