refactoring variables