very basic intersect function.