cleaned up Codebook