Modify the codebook