update for private register as well