added a reset method