adding codebook, edits