for loop variable scope