I would not do that because total can collide with other variables in the outer scope.