modifies number of iterations