correcting function and color to TOC