playing with variable scope