queryobject tree preserves states