Change in the draw lines routine