create nodes for chapters