finalizes generateChapterTable refactoring