update object scopes