added some global variables