change PitEntry::Foreach* to iterators