added changes for register