enhancing codebook