line refactoring