updating to new codebook