correct_lines_from_the_middle