changing TOC to be a table