improve c.snippets
improve tdf