update with code book