extract dup_with_lines method
rename methods