update register code