change outputs to scopes