working on roc
add generate toc function