codebook improvement