avoid lines intersecting