add global variable even is other amd or export is used.