Change scope of variable