call the reset function