detection of all three intersections works