modify code book