Changing the function intersect;