Update codebook's format