reset iteration count before running