refact reset method