Refactored variable name

Now the for variable is named current (used to be i)