total iterations were counted incorrectly