modify the code book