add class attributes to toc