added reset method.