update format of code book