fixup! add intersect function