remove all traces of types code