intersect for re function