cleaned the codebook a little bit