avoid previous line segments