improve scope string