add function draw_2line to clean code