set up the register