added reset method