removes unused args from types