trying to get the register working