adding reset method