fixing code book