added back global register