cleanup trans fns