ensure record type is upper