added public reset method