creating toc files