improve toc generator