small fixes. renamed iteration value