added noreg as global