Why not var i in loop?