specify the number of iterations