modify query condition