scope issues again