AAA_awright: what causes i in the body of the loop to equal the last one?