Intersect function added