revise the register main