record iteration number