minor update of codebook.