lines refactoring