primType cleanup