change summary variables in log to local scope.