changed scope of variable