update number of iterations