still working on line intersections