cleanup Type