another slight modification to adv_global.ec