adding changes for register