changed the maximum number of iterations