change codebook