change the struct of register, isr is useful