refactoring: renamed function
removed local variable