perform the actual intersection