variable scope changes