get rid of syntax error causing accidental global variables