fixing codebook md