added header containing all global variables