Document:

EXHIBIT 10.2

                           AMENDMENT NUMBER TWO TO THE
                          AGREEMENT AND PLAN OF MERGER

      This Amendment Number Two (this "Amendment") to the Agreement and Plan of
Merger dated as of August 28, 1997 (the "Original Agreement") as amended
February 28, 1999 (the "Agreement") between Project Z Corporation ("Project Z")
and Avid Corporation ("Avid") is made as of this 24th day of March, 2000, by and
among Avid (including its capacity as successor to Project Z), Triangle
Pharmaceuticals, Inc. ("Triangle"), and the Securityholder Agent (as such term
is defined in the Reorganization Agreement referred to below) (the
"Securityholder Agent"), on behalf of and as attorney-in-fact for all of the
stockholders, optionholders and warrantholders of Avid immediately prior to the
merger of Project Z with and into Avid (the "Former Avid Stockholders").
Capitalized terms used herein which are not defined herein shall have the
definitions ascribed to them in the Reorganization Agreement (defined below).

                                    RECITALS

      A. Triangle, Project Z and Avid entered into an Agreement and Plan of
Reorganization dated as of June 30, 1997 (the "Original Reorganization
Agreement"), and as amended February 28, 1999 (the "Reorganization Agreement"),
which contained the terms for the merger of Project Z with and into Avid and
after which Avid would become a wholly-owned subsidiary of Triangle.

      B. Avid and Project Z entered into the Original Agreement, pursuant to
which Project Z merged with and into Avid on August 28, 1997, and Avid became a
wholly-owned subsidiary of Triangle.

      C. Avid (including its capacity as successor to Project Z), entered into
Amendment Number One to the Original Agreement, in connection with the extension
to thirty (30) months of the eighteen (18) month period set forth in Section
1.6(b)(ii)(B) of the Original Reorganization Agreement.

      D. Triangle, Avid and the Securityholder Agent, on behalf of and as
attorney-in-fact for the Former Avid Stockholders, are concurrently herewith
entering into an amendment to the Reorganization Agreement (the "Reorganization
Amendment") (i) to extend further the thirty (30) month period set forth in
Section 1.6(b)(ii)(B) of the Reorganization Agreement after which, if Triangle
has not Initiated a Definitive Clinical Trial with the Lead Compound or elected
in writing to continue the development of the Lead Compound, the Securityholder
Agent will have the right to either exercise the Lead Compound Option, and (ii)
to amend certain other provisions of the Agreement as set forth in the
Reorganization Amendment.

      E. Triangle, Avid (including its capacity as successor to Project Z) and
the Securityholder Agent desire to amend the Agreement to make it consistent
with the terms of the Reorganization Agreement as amended by the Reorganization
Amendment.

      NOW, THEREFORE, in consideration of the foregoing and the promises and
covenants contained herein, and for other good and valuable consideration the
receipt and sufficiency of which is hereby acknowledged, the parties hereto
agree as follows:

<PAGE>

      9. AMENDMENTS TO AGREEMENT.

            9.1 Article IV.A.2.b.(i). Article IV.A.2.b.(i) of the Agreement is
hereby amended and restated in its entirety as follows:

            "(i) In the event that Parent, in its sole discretion, (x) Initiates
      (as defined in Section 1.6(b)(iii) of the Reorganization Agreement) a
      Definitive Clinical Trial (as defined in Section 1.6(b)(iii) of the
      Reorganization Agreement) with the Lead Compound (as defined in Section
      1.6(b)(iii) of the Reorganization Agreement), or (y) notifies the
      Securityholder Agent (as defined in Section 7.2(g) of the Reorganization
      Agreement) in a writing that specifically references Section 1.6(b)(ii)(A)
      of the Reorganization Agreement of its election to continue the
      development of the Lead Compound even if Parent has not Initiated a
      Definitive Clinical Trial with the Lead Compound, Parent shall within
      seventy-five (75) days thereafter make available to the Exchange Agent (as
      defined in Section IV.E.1 below) for distribution pursuant to Section IV.E
      below, 1,150,000 shares of Parent Common Stock."

            9.2 Article IV.A.2.b.(ii). Article IV.A.2.b.(ii) of the Agreement is
hereby amended and restated in its entirety as follows:

            "(ii) If neither of the conditions described in Section IV.A.2.b.(i)
      above is satisfied on or prior to forty-eight (48) months after the
      Closing Date and the Securityholder Agent elects not to exercise the Lead
      Compound Option (as defined in Section 5.17 of the Reorganization
      Agreement) within the thirty (30) day period set forth in Section 5.17 of
      the Reorganization Agreement, Parent shall within seventy-five (75) days
      thereafter make available to the Exchange Agent for distribution pursuant
      to Section IV.E below, 100,000 shares of Parent Common Stock."

      10. Third PAYMENT.

      Triangle shall, on or before April 15, 2000, deliver 400,000 shares of
Triangle Common Stock (the "Third Payment") to the Escrow Agent of which that
number of shares to be reserved for the benefit of the holders of Assumed
Options and the holders of Assumed Warrants (the "Reserved Payment") shall be
held by the Escrow Agent, and the remainder shall be transferred promptly to the
Exchange Agent for distribution to each of the Former Avid Stockholders in
proportion to the aggregate number of shares of Parent Common Stock which such
holder would otherwise be entitled to receive from the aggregate of the First
Payment, the Second Payment and the Third Payment pursuant to Section 1.7 of the
Agreement by virtue of such holder's ownership of outstanding shares of Company
Capital Stock immediately prior to the Effective Time, assuming for the purposes
of such allocation that the holders of all Assumed Options and the holders of
all Assumed Warrants were the holders of the number of shares of the Company
Common Stock that would have been issued had all of the Assumed Options and all
of the Assumed Warrants been exercised in full immediately prior to the
Effective Time (assuming that the exercise price was paid in cash). No later
than seventy-five (75) days after delivery to the Escrow Agent of an Agent
Certificate, in form acceptable to Triangle, pursuant to Section

                                      -2-
<PAGE>

1.7(d)(i) of the Agreement with respect to the distribution of the Third
Payment, the Third Payment less the Reserved Payment shall be distributed from
the Exchange Agent to the Former Avid Stockholders as provided in such Agent
Certificate. Triangle, the Escrow Agent, and the Exchange Agent shall be
entitled to rely without investigation on the accuracy of the information set
forth in such Agent Certificate.

      11. EFFECT OF AMENDMENT.

      Except as amended and set forth above, the Agreement shall continue in
full force and effect. In the event of any conflict between the terms of the
Agreement and the terms of this Amendment, the terms of this Amendment shall
govern and control.

      12. FURTHER ASSURANCES.

      The parties agree to execute such further instruments, agreement and
documents and to take such further action as may reasonably be necessary to
carry out the intent of this Amendment.

      13. COUNTERPARTS.

      This Amendment may be executed in any number of counterparts, each which
will be deemed an original, and all of which together shall constitute one
instrument. This Amendment shall become effective when executed and delivered by
Triangle, Avid and a majority of the individuals constituting the Securityholder
Agent.

      14. SEVERABILITY.

      If one or more provisions of this Amendment are held to be unenforceable
under applicable law, such provision shall be excluded from this Amendment and
the balance of the Amendment shall be interpreted as if such provision were so
excluded and shall be enforceable in accordance with its terms.

      15. GOVERNING LAW.

      This Amendment shall be governed by and construed under the laws of the
State of Delaware regardless of the laws that might otherwise govern under
applicable principles of conflicts of laws thereof.

                [REMAINDER OF THIS PAGE INTENTIONALLY LEFT BLANK]

                                      -3-
<PAGE>

      This Amendment is hereby executed as of the date first above written.

TRIANGLE:                           TRIANGLE PHARMACEUTICALS, INC., a
                                    Delaware corporation

                                    By:    /s/ Chris A. Rallis
                                           -------------------------------------
                                    Name:  Chris A. Rallis
                                    Title: President and Chief Operating Officer

AVID:                               AVID CORPORATION, a Pennsylvania
                                    corporation

                                    By:    /s/ Chris A. Rallis
                                           -------------------------------------
                                    Name:  Chris A. Rallis
                                    Title: President

SECURITYHOLDER AGENT:

                                    --------------------------------------------
                                              Forrest H. Anthony

                                          /s/ Alan G. Walton
                                    --------------------------------------------
                                              Alan G. Walton

                                          /s/ Marcia T. Bates
                                    --------------------------------------------
                                              Marcia T. Bates

                   [SIGNATURE PAGE TO AMENDMENT NUMBER TWO TO
                        THE AGREEMENT AND PLAN OF MERGER]EXHIBIT 10.3

                             AMENDMENT NUMBER ONE TO
                       DECLARATION OF REGISTRATION RIGHTS

      This Amendment Number One (the "Amendment") to the Declaration of
Registration Rights, dated August 28, 1997 (the "Original Declaration"),
delivered in connection with the Reorganization Agreement (defined below) by and
among Triangle Pharmaceuticals, Inc. ("Triangle"), Project Z Corporation
("Project Z"), Avid Corporation ("Avid") and the Securityholder Agent (as such
term is defined in the Reorganization Agreement) (the "Securityholder Agent"),
is made as of this 24th day of March, 2000, on behalf and as attorney-in-fact
for all of the stockholders, optionholders and warrantholders of Avid
immediately prior to the merger of Project Z with and into Avid (the "Former
Avid Stockholders"). Capitalized terms used herein which are not defined herein
shall have the definitions ascribed to them in the Reorganization Agreement.

                                    RECITALS

      A. Triangle and, Project Z and Avid entered into an Agreement and Plan of
Reorganization dated as of June 30, 1997 (the "Original Reorganization
Agreement"), as amended (the "Reorganization Agreement") which contained the
terms of the merger of Project Z with and into Avid and after which Avid became
a wholly-owned subsidiary of Triangle, which terms included certain registration
rights covering the resale of the shares of Parent Common Stock issued in the
Merger.

      B. In connection with the Original Reorganization Agreement, Triangle
delivered the Original Declaration, which described the terms and conditions of
the registration rights granted in the Original Reorganization Agreement.

      C. Triangle, Avid and the Securityholder Agent, on behalf of and as
attorney-in-fact for the Former Avid Stockholders, are concurrently herewith
entering into an amendment to the Reorganization Agreement, and in connection
therewith, Triangle will issue 400,000 shares of Parent Common Stock to the
Former Avid Stockholders as a Third Payment (the "Third Payment Shares").

      D. Triangle, Avid (including in its capacity as successor to Project Z)
and the Securityholder Agent desire to amend the Original Declaration to grant
registration rights in connection with the Third Payment Shares.

      NOW, THEREFORE, in consideration of the foregoing and the promises and
covenants contained herein, and for other good and valuable consideration the
receipt and sufficiency of which is hereby acknowledged, the parties hereto
agree as follows:

      16. AMENDMENTS TO Declaration.

            16.1 Section 1. The following definition is added to Section 1:

            "h. "Third Payment Registrable Securities" means for each Holder:
      (a) the number of shares of Parent Common Stock issued to such Holder in
      connection with the Third Payment, excluding a number of shares reserved
      (i) in

<PAGE>

      connection with Assumed Options equal to the number of shares that the
      holders of the Assumed Options would have received had all of the Assumed
      Options and Assumed Warrants been exercised in full immediately prior to
      the Effective Time (assuming that the exercise price was paid in cash),
      and (ii) in connection with the Assumed Warrants equal to the number of
      shares that the holders of the Assumed Warrants would have received had
      all of the Assumed Options and Assumed Warrants been exercised in full
      immediately prior to the Effective Time (assuming that the exercise price
      was paid in cash), and (b) for all Holders the aggregate of all Third
      Payment Registrable Securities held by all such Holder in connection
      therewith, excluding those shares reserved in Section 1(h)(a)(i) and
      Section 1(h)(a)(ii) above, together with all other shares of Parent Common
      Stock which may hereafter be issued with respect thereto as the result of
      a stock split, stock dividend or otherwise.

            16.2 Section 2. Section 2 of the Original Declaration is hereby
amended and restated in its entirety as follows:

            "(i) If one of the conditions described in Section 1.6(b)(ii)(A) of
      the Reorganization Agreement is satisfied, Parent shall use its
      commercially reasonable efforts to cause the Registrable Securities held
      by each Holder following the Merger to be registered under the Act so as
      to permit the resale thereof, and in connection therewith shall prepare
      and file a registration statement on Form S-3 with the SEC within sixty
      (60) days following Parent's receipt of the written request of the
      Majority Holders; provided, however, that each Holder shall at the request
      of Parent provide to Parent all such information and materials with
      respect to such Holder and take all such action as may be reasonably
      required in order to permit Parent to comply with all applicable
      requirements of the SEC with respect to such registration statement and to
      obtain any desired acceleration of the effective date of such registration
      statement, such provision of information and materials by each Holder to
      be a condition precedent to the obligations of Parent pursuant to this
      Declaration with respect to such Holder. The Majority Holders may not
      request registration earlier than the second anniversary of the Closing
      Date nor later than the fourth anniversary of the Closing Date. Parent
      shall not be required to effect more than one (1) registration under this
      Section 2(i) of this Declaration. The offering made pursuant to such
      registration shall not be underwritten.

            (ii) Notwithstanding the foregoing, Parent shall use its
      commercially reasonable efforts to cause the Third Payment Registrable
      Securities held by each Holder following the Third Payment to be
      registered under the Act so as to permit the resale thereof , and in
      connection therewith shall prepare and file a registration statement on
      Form S-3 with the SEC on or before June 1, 2000; provided, however, that
      each Holder shall at the request of Parent provide to Parent all such
      information and materials with respect to such Holder and take all such
      action as may be reasonably required in order to permit Parent to comply
      with all applicable requirements of the SEC with respect to such
      registration statement and to obtain any desired acceleration of the
      effective date of such registration statement, such provision of
      information and materials by each Holder to be a condition precedent to
      the obligations of Parent pursuant to this Declaration with respect to
      such Holder. Parent shall not be required to effect more than one (1)

                                       2
<PAGE>

      registration under this Section 2(ii) of this Declaration. The offering
      made pursuant to such registration shall not be underwritten."

            16.3 Section 3. Section 3 of the Original Declaration is hereby
amended and restated in its entirety as follows:

            "Postponement of Registration. Notwithstanding Section 2 above,
      Parent shall be entitled to postpone the declaration of effectiveness of
      the registration statement prepared and filed pursuant to Section 2(i) for
      up to one hundred eighty (180) calendar days and the declaration of
      effectiveness of the registration statement prepared and filed pursuant to
      Section 2(ii) for up to ninety (90) days, if the Board of Directors of
      Parent, acting in good faith, determines that there exist business reasons
      for such postponement; provided, however, that the Company may not
      postpone the declaration of effectiveness of any registration statement
      pursuant to this Section 3 more than once in any twelve-month period."

            16.4 Section 4. Section 4 of the Original Declaration is hereby
amended and restated in its entirety as follows:

            "Obligations of Parent. Subject to the limitations of Sections 3, 5
      and 12, Parent shall (i) prepare and file with the SEC the registration
      statements on Form S-3 in accordance with Section (2) hereof with respect
      to the applicable shares of Registrable Securities and shall use
      reasonable efforts to cause such registration statements to become
      effective as promptly as practicable after filing and to keep such
      registration statement effective for ninety (90) calendar days (which
      period shall be extended by any period of time during which the Holders
      are not permitted to resell their Registrable Securities under the
      registration statement as a result of the provisions of Section 5 below or
      a lock-up of the Registrable Securities pursuant to Section 5.1(e) of the
      Reorganization Agreement); (ii) prepare and file with the SEC such
      amendments and supplements to such registration statements and the
      prospectuses used in connection therewith as may be necessary to comply
      with the provisions of the Act with respect to the resale or other
      disposition of all securities proposed to be registered in such
      registration statement; (iii) furnish to each Holder such number of copies
      of any prospectus (including any preliminary prospectus and any amended or
      supplemented prospectus) in conformity with the requirements of the Act,
      and such other documents, as each Holder may reasonably request in order
      to effect the offering and resale of the shares of the Registrable
      Securities to be offered and resold, but only while Parent shall be
      required under the provisions hereof to cause the registration statements
      to remain current; and (iv) use its commercially reasonable efforts to
      register or qualify the shares of the Registrable Securities covered by
      such registration statement under the securities or blue sky laws of such
      jurisdictions as each Holder shall reasonably request (provided that
      Parent shall not be required in connection therewith or as a condition
      thereto to qualify to do business or to file a general consent to service
      of process in any such jurisdiction where it has not been qualified).

            16.5 Section 5. The first sentence of Section 5 of the Original
Declaration is hereby amended and restated in its entirety as follows:

                                       3
<PAGE>

            "Selling Procedures. Any sale of Registrable Securities pursuant to
      any registration statement filed in accordance with Section 2 hereof shall
      be subject to the following conditions and procedures:"

      17. EFFECT OF AMENDMENT.

      Except as amended and set forth above, the Original Declaration shall
continue in full force and effect. In the event of any conflict between the
terms of the Original Declaration and the terms of this Amendment, the terms of
this Amendment shall govern and control. This Amendment shall become effective
when executed and delivered by Triangle, Avid and a majority of the individuals
constituting the Securityholder Agent.

                                       4
<PAGE>

      This Amendment is hereby executed as of the date first above written.

TRIANGLE:                           TRIANGLE PHARMACEUTICALS, INC., a
                                    Delaware corporation

                                    By:    /s/ Chris A. Rallis
                                           -------------------------------------
                                    Name:  Chris A. Rallis
                                    Title: President and Chief Operating Officer

AVID:                               AVID CORPORATION, a Pennsylvania
                                    corporation

                                    By:    /s/ Chris A. Rallis
                                           -------------------------------------
                                    Name:  Chris A. Rallis
                                    Title: President

SECURITYHOLDER AGENT:

                                    --------------------------------------------
                                              Forrest H. Anthony

                                          /s/ Alan G. Walton
                                    --------------------------------------------
                                              Alan G. Walton

                                          /s/ Marcia T. Bates
                                    --------------------------------------------
                                              Marcia T. Bates

                   [SIGNATURE PAGE TO AMENDMENT NUMBER ONE TO
                       DECLARATION OF REGISTRATION RIGHTS]

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00009-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00009-of-00352.parquet"}]]