update code book