still trying to fix register