refactoring lench lines