make mode variable golbal