added iteration calculations