var decl in for loop