testing variable scope