move TOC code