fixing debugging global variables