add code to draw lines