make sure query does not change