fixed silly typo, also noted a huge but in intersectSegments... going for a walk