format I4 changed to I6 for iteration number printout