add titles and chapters