fixing formatting issue with codebook