scopes documentation