var decl in for statement