draw_lines helper