added iteration count
added iteration count