fixed some format for code book