add num iterations to bagging/boosting