```i``` is redefined before it's used