better codebook