complete file toc function