study the draw line function