remove double declaration of `var i`

The `ì` variable is defined again in line 32.