add line segments