add chapters and headers