type cleanup