Delete var initialization here and move it to the `for` function