store the global.define in the beginning