Better not create a global var for a for loop