pass 3 removed from formLineSegments, major bug removed