add title: Compiler not re initialize local variable inside the loop