point to codebook
tidy the codebook