update of code book