saving progress. updating codebook.