codebook fix