edit register and register2