refactoring lines