Modifying the codebook