updated global, orders controller
updapted global