cleanup of toc