improve scope