remove the logic of adding enclosed iterators into dependencies