refactors 'line_maker'