cleaning up TOC