modify the process of getting the intersection of two sets