trying to fix register