implement bitfunc integration iteratively