remove external types