change to global.h