reset iteration counter