alter function scope.