modified reset method