add AddGlobal method