changes to codebook to add unit