all integrate routines now based on iterators
deleted unnecessary code segments