tidy the codebook