added a reset method to the register object