changing number of iterations