change register method for add