added globals and locals to the execution in main