working on register.