fixing CodeBook final version2