fixed up reset method.