added global.r