playing with scope issues