Change reg code