added iteration number to output
added iteration number to output