change the reset method