use command for register