added the code for the global resets