sly modification in remove intersection