update for CodeBook