variable scope rules