removing redundant variable

There was no need to store the i value in a local variable (afaik)