change register and LED.