change variable scope