use in for scope declaration of counter variable i