update to intersectLine()