modify codebook again