fixing CodeBook final version