Got rid of the extraneous method for the main and got back  all my global variables...