Different variable in loop and its body