modify codebook content