reset global variables