changes to codebook