small changes in codebook