modifications to the codebook