refactoring. inline var