working on fixing the register