trim out unused typedef