repaired CodeBook