renaming ContextType in TypeFunc