added the reset method