modify register2