add title and chapter heading