rebuild book structure.