slight changes made to codebook