rewriting some scopes