last codebook clean