minor change to query