Back to top

POOLING AND SERVICING AGREEMENT

Pooling and Servicing Agreement

POOLING AND SERVICING AGREEMENT | Document Parties: GMACM MORTGAGE LOAN TRUST | RESIDENTIAL ASSET MORTGAGE PRODUCTS, INC | GMAC MORTGAGE CORPORATION | DEUTSCHE BANK NATIONAL TRUST COMPANY You are currently viewing:
This Pooling and Servicing Agreement involves

GMACM MORTGAGE LOAN TRUST | RESIDENTIAL ASSET MORTGAGE PRODUCTS, INC | GMAC MORTGAGE CORPORATION | DEUTSCHE BANK NATIONAL TRUST COMPANY

. RealDealDocs™ contains millions of easily searchable legal documents and clauses from top law firms. Search for free - click here.
Title: POOLING AND SERVICING AGREEMENT
Governing Law: New York     Date: 7/19/2005

POOLING AND SERVICING AGREEMENT, Parties: gmacm mortgage loan trust , residential asset mortgage products  inc , gmac mortgage corporation , deutsche bank national trust company
50 of the Top 250 law firms use our Products every day

 

 

                                                              EXECUTION COPY

 

 

 

 

                   RESIDENTIAL ASSET MORTGAGE PRODUCTS, INC.,

                                    Company,

 

                           GMAC MORTGAGE CORPORATION,

                                     Servicer

 

                                       and

 

                      DEUTSCHE BANK NATIONAL TRUST COMPANY,

                                     Trustee

 

 

                         POOLING AND SERVICING AGREEMENT

 

                             Dated as of June 29, 2005

 

 

                       GMACM Mortgage Loan Trust 2005-AF1

                    Residential Asset Mortgage Products, Inc.

            GMACM Mortgage Pass-Through Certificates, Series 2005-AF1

 

 

<PAGE>

 

<TABLE>

<CAPTION>

 

                                TABLE OF CONTENTS

 

                                                                                          PAGE

 

<S>                                                                                         <C>

ARTICLE I          DEFINITIONS...............................................................4

 

        Section 1.01.      Definitions.......................................................4

 

        Section 1.02.      Determination of LIBOR...........................................42

 

        Section 1.03.      Use of Words and Phrases.........................................42

 

ARTICLE II         CONVEYANCE OF MORTGAGE LOANS; ORIGINAL ISSUANCE OF CERTIFICATES..........43

 

        Section 2.01.      Conveyance of Mortgage Loans.....................................43

 

        Section 2.02.      Acceptance by Trustee............................................46

 

        Section 2.03.      Representations, Warranties and Covenants of the Servicer........47

 

        Section 2.04.      Representations and Warranties of the Seller.....................48

 

        Section 2.05.      Execution and Authentication of Certificates.....................49

 

        Section 2.06.      Purposes and Powers of the Trust Fund............................49

 

ARTICLE III        ADMINISTRATION AND SERVICING OF MORTGAGE LOANS...........................50

 

        Section 3.01.      Servicer to Act as Servicer......................................50

 

        Section 3.02.      Subservicing Agreements Between Servicer and Subservicers;

                          Enforcement of Subservicers' and Seller's Obligations............51

 

        Section 3.03.      Successor Subservicers...........................................51

 

        Section 3.04.      Liability of the Servicer........................................52

 

        Section 3.05.      No Contractual Relationship Between Subservicer and Trustee

                          or Certificateholders............................................52

 

        Section 3.06.      Assumption or Termination of Subservicing Agreements by

                          Trustee..........................................................52

 

        Section 3.07.      Collection of Certain Mortgage Loan Payments; Deposits to

                           Custodial Account................................................52

 

        Section 3.08.      Subservicing Accounts; Servicing Accounts........................54

 

        Section 3.09.      Access to Certain Documentation and Information Regarding

                          the Mortgage Loans...............................................55

 

        Section 3.10.      Permitted Withdrawals from the Custodial Account.................56

 

        Section 3.11.      Maintenance of the Primary Insurance Policies; Collections

                          Thereunder.......................................................57

 

        Section 3.12.      Maintenance of Hazard Insurance and Omissions and Fidelity

                          Coverage.........................................................58

 

        Section 3.13.      Enforcement of Due-on-Sale Clauses; Assumption and

                          Modification Agreements; Certain Assignments.....................59

 

        Section 3.14.      Realization Upon Defaulted Mortgage Loans........................61

 

        Section 3.15.      Trustee to Cooperate; Release of Mortgage Notes..................63

 

        Section 3.16.      Servicing and Other Compensation; Compensating Interest..........64

 

         Section 3.17.      Periodic Filings with the Securities and Exchange

                          Commission; Additional Information...............................65

 

        Section 3.18.      Annual Statement as to Compliance................................66

 

        Section 3.19.      Annual Independent Public Accountants' Servicing Report..........66

 

        Section 3.20.      Rights of the Company in Respect of the Servicer.................67

 

        Section 3.21.      Administration of Buydown Funds..................................67

 

        Section 3.22.      Advance Facility.................................................67

 

ARTICLE IV         PAYMENTS TO CERTIFICATEHOLDERS...........................................68

 

        Section 4.01.      Payment Account..................................................68

 

        Section 4.02.      Distributions....................................................69

 

        Section 4.03.      Statements to Certificateholders.................................76

 

         Section 4.04.      Distribution of Reports to the Trustee and the Company;

                          Advances by the Servicer.........................................76

 

        Section 4.05.      Allocation of Realized Losses....................................77

 

        Section 4.06.      Reports of Foreclosures and Abandonment of Mortgaged Property....78

 

        Section 4.07.      Optional Purchase of Defaulted Mortgage Loans....................79

 

        Section 4.08.      Hedge Agreements.................................................79

 

ARTICLE V          THE CERTIFICATES.........................................................81

 

        Section 5.01.      The Certificates.................................................81

 

        Section 5.02.      Registration of Transfer and Exchange of Certificates............82

 

        Section 5.03.      Mutilated, Destroyed, Lost or Stolen Certificates................87

 

        Section 5.04.      Persons Deemed Owners............................................87

 

        Section 5.05.      Appointment of Paying Agent......................................88

 

        Section 5.06.      Optional Purchase of Certificates................................88

 

ARTICLE VI         THE COMPANY AND THE SERVICER.............................................89

 

        Section 6.01.      Respective Liabilities of the Company and the Servicer...........89

 

        Section 6.02.      Merger or Consolidation of the Company or the Servicer;

                          Assignment of Rights and Delegation of Duties by Servicer........89

 

        Section 6.03.      Limitation on Liability of the Company, the Servicer and

                          Others...........................................................90

 

        Section 6.04.      Company and Servicer Not to Resign...............................91

 

ARTICLE VII        DEFAULT..................................................................91

 

        Section 7.01.      Events of Default................................................91

 

         Section 7.02.      Trustee to Act; Appointment of Successor.........................93

 

        Section 7.03.      Notification to Certificateholders...............................94

 

        Section 7.04.      Waiver of Events of Default......................................94

 

ARTICLE VIII       CONCERNING THE TRUSTEE...................................................95

 

        Section 8.01.      Duties of Trustee................................................95

 

        Section 8.02.      Certain Matters Affecting the Trustee............................96

 

        Section 8.03.      Trustee Not Liable for Certificates or Mortgage Loans............97

 

        Section 8.04.      Trustee May Own Certificates.....................................98

 

        Section 8.05.      Servicer to Pay Trustee's Fees and Expenses; Indemnification.....98

 

        Section 8.06.      Eligibility Requirements for Trustee.............................98

 

        Section 8.07.      Resignation and Removal of the Trustee...........................99

 

        Section 8.08.      Successor Trustee...............................................100

 

        Section 8.09.      Merger or Consolidation of Trustee..............................100

 

        Section 8.10.      Appointment of Co-Trustee or Separate Trustee...................100

 

        Section 8.11.      Appointment of Custodians.......................................101

 

        Section 8.12.      Appointment of Office or Agency.................................101

 

        Section 8.13.      U.S.A. Patriot Act..............................................102

 

        Section 8.14.      Hedge Agreements................................................102

 

ARTICLE IX         TERMINATION.............................................................102

 

        Section 9.01.      Termination Upon Purchase by the Servicer or Liquidation of

                          All Mortgage Loans..............................................102

 

        Section 9.02.      Additional Termination Requirements.............................104

 

ARTICLE X          REMIC PROVISIONS........................................................105

 

        Section 10.01.     REMIC Administration............................................105

 

        Section 10.02.     Servicer, REMIC Administrator and Trustee Indemnification.......108

 

        Section 10.03.     Designation of REMIC(s).........................................108

 

        Section 10.04.     Distributions on REMIC I Regular Interests and REMIC II

                           Regular Interests...............................................109

 

        Section 10.05.     Compliance with Withholding Requirements........................109

 

ARTICLE XI         MISCELLANEOUS PROVISIONS................................................110

 

        Section 11.01.     Amendment.......................................................110

 

        Section 11.02.     Recordation of Agreement; Counterparts..........................111

 

        Section 11.03.     Limitation on Rights of Certificateholders......................112

 

        Section 11.04.     Governing Law...................................................112

 

        Section 11.05.     Notices.........................................................113

 

        Section 11.06.     Required Notices to Rating Agency and Subservicer...............114

 

        Section 11.07.     Severability of Provisions......................................114

 

        Section 11.08.     Supplemental Provisions for Resecuritization....................114

        Section 11.09.     Allocation of Voting Rights.....................................115

 

        Section 11.10.     Non-Petition....................................................115

 

</TABLE>

 

 

<PAGE>

 

 

                                TABLE OF CONTENTS

                                   (CONTINUED)

 

 

EXHIBITS

Exhibit A-1:      Form of Class A Certificate

Exhibit A-2:      Form of Class IO Certificate

Exhibit A-3:      Form of Class PO Certificate

Exhibit B:        Form of Class M Certificate

Exhibit C:        Form of Class B Certificate

Exhibit D:        Form of Class R Certificate

Exhibit E:        Mortgage Loan Schedule

Exhibit F:        Form of Request for Release

Exhibit G-1:      Form of Transfer Affidavit and Agreement

Exhibit G-2:      Form of Transferor Certificate

Exhibit H:        Form of Investor Representation Letter

Exhibit I:        Form of Transferor Representation Letter

Exhibit J:        Form of Rule 144A Investment Representation Letter

Exhibit K:        Form of Lender Certification for Assignment of Mortgage Loan

Exhibit L:        Information to be Included in Remittance Report

Exhibit M:        Form of Custodian Certification

Exhibit N-1       Form of Form 10-K Certification

Exhibit N-2       Form of Back-Up Certification to Form 10-K Certificate

Exhibit O:        Schedule of Discount Fractions

 

 

<PAGE>

 

 

 

        This is the Pooling and Servicing   Agreement,   dated as of June 29, 2005

(the "Pooling and Servicing Agreement" or "Agreement"),   among RESIDENTIAL ASSET

MORTGAGE PRODUCTS,   INC., as the company (together with its permitted successors

and assigns, the "Company"),   GMAC MORTGAGE   CORPORATION,   as servicer (together

with its permitted   successors and assigns,   the "Servicer"),   and DEUTSCHE BANK

NATIONAL TRUST COMPANY,   a banking   association   organized under the laws of the

United States, as Trustee   (together with its permitted   successors and assigns,

the "Trustee").

 

                             PRELIMINARY STATEMENT:

 

        The Company intends to sell   mortgage-backed   pass-through   certificates

(collectively,   the   "Certificates"),   to   be   issued   hereunder   in   twenty-two

Classes,   which in the aggregate will evidence the entire   beneficial   ownership

interest in the Mortgage   Loans (as defined   herein) and certain   other   related

assets.

 

                                     REMIC I

 

        As provided   herein,   the REMIC   Administrator   will make an election to

treat the segregated pool of assets consisting of the Mortgage Loans and certain

other   related   assets   (exclusive   of the   Hedge   Agreements)   subject   to this

Agreement as a real estate mortgage   investment   conduit (a "REMIC") for federal

income tax purposes,   and such   segregated   pool of assets will be designated as

"REMIC I." Component I of the Class R Certificates will represent the sole Class

of   "residual   interests"   in REMIC I for purposes of the REMIC   Provisions   (as

defined   herein) under federal income tax law. The following   table   irrevocably

sets   forth   the   designation,   remittance   rate   (the   "Uncertificated   REMIC I

Pass-Through Rate") and initial Uncertificated Principal Balance for each of the

"regular   interests" in REMIC I (the "REMIC I Regular   Interests").   The "latest

possible maturity date" (determined   solely for purposes of satisfying   Treasury

regulation Section 1.860G   1(a)(4)(iii)) for each REMIC I Regular Interest shall

be   the   Maturity   Date.   None   of   the   REMIC   I   Regular    Interests   will   be

certificated.

 

 

<TABLE>

<CAPTION>

                                                                                    

 

CLASS DESIGNATION                                          REMIC I    INITIAL CLASS       FINAL

  FOR EACH REMIC I         RELATED CLASS OF        TYPE OF    INTEREST      PRINCIPAL       MATURITY

  REGULAR INTEREST           CERTIFICATES           INTEREST     RATE         BALANCE          DATE*

                    A-3, A-5, A-6, A-7, A-10,

                      A-11, A-12, M-1, M-2,

                      M-3, B-1, B-2 and B-3

                     and Component II of the

<S>       <C>                                                  <C>       <C>                    <C>

       LT1                    Class R             Regular      5.75%     $96,971,775.00    July 2035

       LT2             A-1, A-12, A-8 and A-9     Regular      5.75%     $65,850,000.00    July 2035

       LT3                  A-2 and A-8           Regular      5.75%     $40,000,000.00    July 2035

       LT4                  A-4 and A-12          Regular      5.75%     $14,656,325.00    July 2035

                                                                      $

       LTPO                      PO               Regular      0.00%      1,508,222.00     July 2035

       LTIO                      IO               Regular       (1)      $          0.00    July 2035

</TABLE>

 

   *    The   Distribution   Date   in the   specified   month,   which   is   the   month

       following   the month the   latest   maturing   Mortgage   Loan   matures.   For

       federal   income   tax   purposes,   for each   Class of REMIC I   Regular   and

       Residual   Interests,   the "latest   possible   maturity   date" shall be the

       Final Maturity Date.

 

   (1) With respect to any   Distribution   Date, the weighted average of the Pool

       Strip Rates with respect to the Non-Discount   Mortgage Loans, weighted on

       the basis of their respective Stated Principal Balances immediately prior

       to such   Distribution   Date   applied to a Notional   Balance   equal to the

       aggregate   Stated Principal   Balance of the   Non-Discount   Mortgage Loans

       immediately prior to such Distribution Date

                                     REMIC II

 

                                       1

<PAGE>

 

        As   provided   herein,   the REMIC   Administrator   will elect to treat the

segregated pool of assets consisting of the REMIC I Regular Interests as a REMIC

for federal income tax purposes,   and such segregated pool of assets   (exclusive

of the Hedge   Agreements)   will be designated   as REMIC II.   Component II of the

Class R Certificates   will   represent the sole Class of "residual   interests" in

REMIC II for purposes of the REMIC   Provisions under federal income tax law. The

following   table   irrevocably   sets forth the   designation,   Pass-Through   Rate,

aggregate Initial Certificate   Principal Balance,   certain features and Month of

Final Scheduled Distribution Date for each Class of Certificates   comprising the

interests   representing   "regular interests" in REMIC II and Component II of the

Class R Certificates. The "latest possible maturity date" (determined solely for

purposes of satisfying Treasury Regulation Section 1.860G-1(a)(4)(iii)) for each

Class of REMIC II Regular Certificates shall be the Maturity Date.

 

<TABLE>

<CAPTION>

 

CLASS DESIGNATION   

FOR EACH REMIC II

  REGULAR INTEREST                                AGGREGATE                               FINAL

  AND COMPONENT II                              INITIAL CLASS                           SCHEDULED

  OF THE CLASS R     TYPE OF      PASS-THROUGH     PRINCIPAL                            DISTRIBUTION

   CERTIFICATES       INTEREST     RATE(1)(2)       BALANCE              FEATURES            DATE

<S>           <C>                          <C>   <C>                                          <C>

     Class A-1        Regular     Variable (1)   $30,850,000.00     Senior/Accretion      July 2035

                                                                Directed/ Floater

     Class A-2        Regular     Variable(2)    $40,000,000.00     Senior/Accretion      July 2035

                                                               Directed/ Floater

     Class A-3        Regular         5.75%       $58,719,000.00          Senior           July 2035

     Class A-4        Regular        5.00%       $14,656,325.00     Senior/Lockout/       July 2035

     Class A-5        Regular        5.75%       $27,202,000.00   Senior/Lockout/AccretioJuly 2035

                                                                     Directed

     Class A-6        Regular        5.75%       $                   Senior/Accrual       July 2035

                                               1,000,000.00

     Class A-7        Regular        5.75%       $                Senior/Accrual/AccretioJuly 2035

                                               2,959,000.00          Directed

     Class A-8        Regular     Variable(3)         (3)           Senior/Interest       July 2035

                                                               Only/Inverse Floater

     Class A-9        Regular     Variable(4)         (4)           Senior/Interest       July 2035

                                                              Only/Inverse Floater

     Class A-10       Regular        5.75%       $                       Senior           July 2035

                                               1,631,100.00      Support/Lockout

     Class A-11       Regular        5.75%       $                       Senior           July 2035

                                               1,378,900.00      Support/Lockout

     Class A-12       Regular        5.75%            (5)         Senior/Interest Only    July 2035

     Class A-13                  Variable (1)   $30,000,000.00     Senior/Accretion

                                                               Directed/ Floater

      Class PO        Regular         0.00       $                  Senior/Principal      July 2035

                                               1,508,222.00            Only

       Class IO        Regular     Variable(6)         (6)         Senior/Interest Only    July 2035

     Class M-1        Regular        5.75%       $                    Subordinate         July 2035

                                               6,946,000.00

     Class M-2        Regular        5.75%       $                    Subordinate         July 2035

                                               3,179,000.00

     Class M-3        Regular        5.75%       $                    Subordinate         July 2035

                                                2,355,000.00

     Class B-1        Regular        5.75%       $                    Subordinate         July 2035

                                               1,648,000.00

     Class B-2        Regular        5.75%       $                     Subordinate         July 2035

                                                 824,000.00

     Class B-3        Regular        5.75%       $                    Subordinate         July 2035

                                               1,531,153.00

     Component II                               $

  of the Class R(7)   Residual        5.75%             100.00      Senior/Residual       July 2035

</TABLE>

 

_______________

(1) With   respect   to the Class A-1 and Class   A-13   Certificates   and the first

    Distribution   Date, a per annum rate equal to 3.50%.   For each   Distribution

    Date   thereafter,   the   Pass-Through   Rate for the Class A-1 and Class   A-13

    Certificates   will be a per annum rate equal to the lesser of (i) LIBOR plus

    0.30% and (ii) 5.75%.

(2) With respect to the Class A-2 Certificates and the first   Distribution Date,

    a per annum rate equal to 3.80% For each Distribution   Date thereafter,   the

    Pass-Through   Rate for the Class A-2   Certificates   will be a per annum rate

    equal to the lesser of (i) LIBOR plus 0.60% and (ii) 5.75%.

(3) With respect to the Class A-8 Certificates and the first   Distribution Date,

    a per annum rate equal to 1.95%. For each Distribution Date thereafter,   the

    Pass-Through   Rate for the Class A-8   Certificates   will be a per annum rate

    equal to the greater of (i) 5.15% minus LIBOR and (ii) 0.00%.   The Class A-8

    Certificates do not have a Certificate   Principal   Balance.   For purposes of

    calculating interest thereon,   interest will accrue on a Notional Amount for

    the Class A-8 Certificates.

(4) With respect to the Class A-9 Certificates and the Distribution   Date, a per

    annum   rate   equal   to 0.30.   For each   Distribution   Date   thereafter,   the

    Pass-Through   Rate for the Class A-9   Certificates   will be a per annum rate

    equal to the   greater   of (i) the   lesser of (a) 5.45%   minus   LIBOR and (b)

    0.30% and (ii) 0.00%.   The Class A-9   Certificates do not have a Certificate

    Principal Balance.   For purposes of calculating   interest thereon,   interest

    will accrue on a Notional Amount for the Class A-9 Certificates.

(5) The Class A-12 Certificates do not have a Certificate Principal Balance. For

    purposes of calculating interest thereon, interest will accrue on a Notional

    Amount for the Class A-12 Certificates.

 

 

                                       2

<PAGE>

 

(6) With respect to the Class IO Certificates and any Distribution   Date, a rate

    equal to the   weighted   average of the Pool Strip Rate of each   Non-Discount

    Mortgage   Loan   weighted   on the basis of the   respective   Stated   Principal

    Balances of such Mortgage   Loans as of the day   immediately   preceding   such

    Distribution Date (or, with respect to the initial Distribution Date, at the

    close of business on the Cut-off Date).   amounts   received under the related

    Hedge   Agreement   which will be deemed made for federal   income tax purposes

    outside of REMIC II by the holder of the Class IO   Certificates as the owner

    of the Hedge   Agreements.   The   initial   pass   through   rate on the Class IO

    Certificates is approximately 0.53587% per annum.

(7) Component   II of the Class R   Certificates   shall be entitled to receive the

    applicable   Residual   Distribution   Amount.   Component   II of   the   Class   R

    Certificates   shall not be entitled to receive any distributions of interest

    or principal.

 

 

                                       3

<PAGE>

 

 

        In consideration of the mutual agreements herein contained, the Company,

the Servicer and the Trustee agree as follows:

 

ARTICLE I

 

                                   DEFINITIONS

 

Section 1.01.   Definitions.

 

        Whenever used in this Agreement, the following words and phrases, unless

the   context   otherwise   requires,   shall have the   meanings   specified   in this

Article.

 

        Accretion Directed Certificates: Collectively, the Class A-1, Class A-2,

Class A-5, Class A-7 and Class A-13 Certificates.

 

        Accretion   Termination Date: The Class A-6 Accretion Termination Date or

the Class A-7 Accretion Termination Date, as applicable.

 

        Accrual Certificates: Collectively, the Class A-6 Certificates and Class

A-7 Certificates.

 

        Accrued Certificate Interest: With respect to each Distribution Date and

any   Class of   Certificates,   other   than the   Class PO   Certificates,   interest

accrued during the related Interest   Accrual Period at the related   Pass-Through

Rate on the Certificate   Principal   Balance or Notional   Amount,   as applicable,

thereof   immediately   prior   to   such   Distribution   Date.   Accrued   Certificate

Interest   on each Class of   Certificates   will be   calculated   on the basis of a

360-day year, consisting of twelve 30-day months.

 

        With respect to each Distribution Date, Accrued Certificate   Interest on

any Class of Certificates will be reduced by the amount of:

 

(i)             Prepayment   Interest   Shortfalls   on the Mortgage   Loans   prepaid

               during the prior   calendar   month and, in the case of a Principal

                Prepayment in Full, during the related   Prepayment Period (to the

               extent not offset by the Servicer with a payment of   Compensating

               Interest),

 

(ii)            the interest   portion   (adjusted to the Net Mortgage Rate (or the

               Modified   Net   Mortgage   Rate in the case of a Modified   Mortgage

               Loan)) of Realized Losses on the Mortgage Loans (including Excess

               Special Hazard   Losses,   Excess Fraud Losses,   Excess   Bankruptcy

                Losses and   Extraordinary   Losses) not allocated solely to one or

               more specific Classes of Certificates pursuant to Section 4.05,

 

(iii)           the interest   portion of Advances   that were made with respect to

               delinquencies related to Mortgage Loans or REO Property that were

               ultimately   determined to be Excess Special Hazard Losses, Excess

               Fraud Losses,   Excess Bankruptcy Losses or Extraordinary   Losses,

               and

 

(iv)            any other   interest   shortfalls on the Mortgage Loans not covered

               by the   subordination   provided by the Class M   Certificates   and

               Class B Certificates,   including interest that is not collectible

               from the Mortgagor pursuant to the Relief Act,

 

with all such reductions   allocated among all of the   Certificates in proportion

to their   respective   amounts of Accrued   Certificate   Interest   payable on such

Distribution   Date absent such   reductions.   In addition to that   portion of the

reductions   described in the preceding   sentence that are allocated to any Class

of   Class   B   Certificates   or   any   Class   of   Class   M   Certificates,   Accrued

 

 

                                       4

<PAGE>

 

Certificate   Interest   on such   Class of Class B   Certificates   or such Class of

Class M Certificates   will be reduced by the interest   portion   (adjusted to the

Net Mortgage Rate) of Realized Losses that are allocated solely to such Class of

Class B Certificates   or such Class of Class M Certificates   pursuant to Section

4.05.

 

        Advance:   As to any Mortgage   Loan,   any advance   made by the   Servicer,

pursuant to Section 4.04.

 

        Affiliate:   With respect to any Person,   any other   Person   controlling,

controlled by or under common   control with such first Person.   For the purposes

of this   definition,   "control"   means the power to direct   the   management   and

policies of such Person,   directly or indirectly,   whether through the ownership

of voting securities,   by contract or otherwise; and the terms "controlling" and

"controlled" have meanings correlative to the foregoing.

 

        Amount Held for Future   Distribution:   With respect to any   Distribution

Date,   the total of the amounts   held in the   Custodial   Account at the close of

business   on the   related   Determination   Date   on   account   of (i)   Liquidation

Proceeds, Subsequent Recoveries, Insurance Proceeds, Curtailments, Mortgage Loan

purchases   made   pursuant   to   Section   2.02,   2.04 or 4.07   and   Mortgage   Loan

substitutions   made   pursuant to Section   2.04   received or made in the month of

such   Distribution   Date   (other   than   such   Liquidation   Proceeds,    Insurance

Proceeds,   Subsequent   Recoveries   and   purchases   of   Mortgage   Loans   that the

Servicer has deemed to have been received in the   preceding   month in accordance

with Section 3.07(b)),   and Principal Prepayments in Full received or made after

the related   Prepayment   Period, and (ii) payments which represent early receipt

of   scheduled   payments   of   principal   and   interest   due   on a date   or   dates

subsequent to the related Due Date.

 

        Appraised   Value:   As to any Mortgaged   Property,   the lesser of (i) the

appraised value of such Mortgaged   Property based upon the appraisal made at the

time of the   origination of the related   Mortgage Loan, and (ii) the sales price

of the Mortgaged   Property at such time of origination,   except in the case of a

Mortgaged   Property   securing a refinanced or modified Mortgage Loan as to which

it is   either   the   appraised   value   determined   above or the   appraised   value

determined in an appraisal at the time of   refinancing or   modification,   as the

case may be, provided that if permitted by the applicable underwriting standards

of GMACM,   the Appraised   Value shall be the value of the Mortgaged   Property as

stated by the Mortgagor.

 

        Assignment:   An   assignment   of the   Mortgage,   notice   of   transfer   or

equivalent   instrument,   in recordable   form,   sufficient   under the laws of the

jurisdiction   wherein   the related   Mortgaged   Property is located to reflect of

record   the   sale   of the   Mortgage   Loan to the   Trustee   for   the   benefit   of

Certificateholders,    which    assignment,    notice   of   transfer   or   equivalent

instrument   may be in the   form   of one or   more   blanket   assignments   covering

Mortgages   secured   by   Mortgaged   Properties   located   in the same   county,   if

permitted by law and accompanied by an Opinion of Counsel to that effect.

 

        Assignment of Proprietary Lease: With respect to a Cooperative Loan, the

assignment of the related Cooperative Lease from the Mortgagor to the originator

of the Cooperative Loan.

 

        Available Distribution Amount: With respect to any Distribution Date, an

amount equal to (a) the sum of (i) the amount   relating to the Mortgage Loans on

deposit in the Custodial   Account as of the close of business on the immediately

preceding   Determination Date, including any Subsequent Recoveries,   and amounts

deposited   in the   Custodial   Account in   connection   with the   substitution   of

Qualified   Substitute Mortgage Loans, (ii) the amount of any Advance made on the

immediately   preceding   Payment Account Deposit Date, (iii) any amount deposited

in the Payment   Account on the related   Payment Account Deposit Date pursuant to

 

 

                                       5

<PAGE>

 

the second   paragraph   of Section   3.12(a),   (iv) any   amount   deposited   in the

Payment   Account   pursuant to Section 4.07, and (v) any amount that the Servicer

is not   permitted to withdraw   from the   Custodial   Account   pursuant to Section

3.16(e),   reduced by (b) the sum as of the close of business on the   immediately

preceding   Determination   Date of (w)   aggregate   Foreclosure   Profits,   (x) the

Amount Held for Future Distribution and (y) amounts permitted to be withdrawn by

the   Servicer   from the   Custodial   Account   in respect   of the   Mortgage   Loans

pursuant to clauses (ii)-(x), inclusive, of Section 3.10(a).

 

        Bankruptcy   Amount:   As of any date of determination   prior to the first

anniversary   of the Cut-off Date, an amount equal to the excess,   if any, of (A)

$150,000 over (B) the aggregate amount of Bankruptcy   Losses allocated solely to

one or more specific Classes of Certificates in accordance with Section 4.05. As

of any date of   determination   on or after the first   anniversary of the Cut-off

Date, an amount equal to the excess, if any, of:

 

               (1) the lesser of (a) the Bankruptcy   Amount calculated as of the

        close of business on the Business   Day   immediately   preceding   the most

        recent anniversary of the Cut-off Date coinciding with or preceding such

        date   of   determination   (or,   if   such   date   of   determination   is   an

        anniversary of the Cut-off Date, the Business Day immediately   preceding

        such   date of   determination)   (for   purposes   of this   definition,   the

        "Relevant Anniversary") and (b) the greatest of:

 

                      (A)   the   greater   of   (i)   0.0006   times   the    aggregate

                       principal   balance   of   all   the   Mortgage   Loans   in   the

                      Mortgage   Pool as of the   Relevant   Anniversary   having   a

                      Loan-to-Value   Ratio at origination   which exceeds 75% and

                       (ii) $100,000;

 

                      (B)   (i)   if   the   aggregate    principal   balance   of   the

                      Non-Primary Residence Loans as of the Relevant Anniversary

                      is less than 10% of the   Stated   Principal   Balance of the

                      Mortgage Loans as of the Relevant   Anniversary,   $0.00, or

                      (ii) if the aggregate principal balance of the Non-Primary

                      Residence Loans as of the Relevant Anniversary is equal to

                       or greater than 10% of the Stated Principal Balance of the

                      Mortgage Loans as of the Relevant Anniversary,   the sum of

                      (I) the   aggregate   principal   balance of the   Non-Primary

                      Residence Loans with a Loan-to-Value Ratio of greater than

                      80.00% but less than or equal to 90.00%, times 0.25%, (II)

                      the   aggregate    principal    balance   of   the   Non-Primary

                      Residence Loans with a Loan-to-Value Ratio of greater than

                      90.00% but less than or equal to 95.00%,   times 0.50%, and

                      (III) the aggregate   principal   balance of the Non-Primary

                      Residence Loans with a Loan-to-Value Ratio of greater than

                      95.00%   times   0.75%,   in   each   case   as of the   Relevant

                      Anniversary; and

 

                      (C) the greater of (i) the product of (x) an amount   equal

                       to the largest   difference in the related   Monthly Payment

                      for   any   Non-Primary   Residence   Loan   remaining   in   the

                      Mortgage Pool which had an original Loan-to-Value Ratio of

                      80% or greater that would result if the Net Mortgage   Rate

                      thereof was equal to the   weighted   average   (based on the

                      principal balance of the Mortgage Loans as of the Relevant

                      Anniversary)   of the Net Mortgage Rates of all Outstanding

                      Mortgage Loans as of the Relevant   Anniversary   less 1.25%

                      per   annum,   (y) a number   equal to the   weighted   average

                      remaining term to maturity,   in months, of all Non-Primary

                      Residence   Loans   remaining in the Mortgage Pool as of the

                      Relevant Anniversary, and (z) one plus the quotient of the

                      number of all Non-Primary Residence Loans remaining in the

                      Mortgage   Pool divided by the total number of   Outstanding

                      Mortgage   Loans in the   Mortgage   Pool as of the   Relevant

                      Anniversary, and (ii) $50,000;

 

                                        6

<PAGE>

 

               over

 

               (2) the aggregate amount of Bankruptcy Losses allocated solely to

        one or more specific   Classes of Certificates in accordance with Section

        4.05 since the Relevant Anniversary.

 

        The Bankruptcy Amount may be further reduced by the Servicer   (including

accelerating   the manner in which such coverage is reduced)   provided that prior

to any such reduction,   the Servicer shall (i) obtain written   confirmation from

each Rating Agency that such reduction   shall not reduce the rating   assigned to

any   Class   of   Certificates   by such   Rating   Agency   below   the   lower   of the

then-current   rating   or the   rating   assigned   to such   Certificates   as of the

Closing   Date by such   Rating   Agency   and (ii)   provide a copy of such   written

confirmation to the Trustee.

 

        Bankruptcy Code:   The Bankruptcy Code of 1978, as amended.

 

        Bankruptcy   Loss:   With   respect   to   any   Mortgage   Loan,   a   Deficient

Valuation or Debt Service Reduction; provided, however, that neither a Deficient

Valuation   nor a Debt   Service   Reduction   shall   be   deemed a   Bankruptcy   Loss

hereunder   so long as the   Servicer has notified the Trustee in writing that the

Servicer is diligently   pursuing any remedies that may exist in connection   with

the   representations and warranties made regarding the related Mortgage Loan and

either (A) the related   Mortgage   Loan is not in default with regard to payments

due   thereunder or (B)   delinquent   payments of principal and interest under the

related   Mortgage   Loan   and   any   premiums   on any   applicable   primary   hazard

insurance   policy and any related   escrow   payments in respect of such   Mortgage

Loan are being advanced on a current basis by the Servicer or a Subservicer,   in

either case without giving effect to any Debt Service Reduction.

 

        Book-Entry   Certificate:   Any Certificate   registered in the name of the

Depository or its nominee.

 

        Business   Day: Any day other than (i) a Saturday or a Sunday,   or (ii) a

day on which banking   institutions in the State of New York, State of California

or the Commonwealth of Pennsylvania (and such other state or states in which the

Custodial   Account or the Payment   Account are at the time located) are required

or authorized by law or executive order to be closed.

 

        Buydown Account:   As defined in Section 3.21(a).

 

        Buydown   Funds:   Any amount   contributed   by the   seller of a   Mortgaged

Property, the Company or other source in order to enable the Mortgagor to reduce

the payments   required to be made from the Mortgagor's   funds in the early years

of a   Mortgage   Loan.   Buydown   Funds   are not part of the Trust   Fund   prior to

deposit into the Custodial Account or Payment Account.

 

        Buydown   Mortgage Loan: Any Mortgage Loan as to which a specified amount

of interest is paid out of related   Buydown Funds in   accordance   with a related

buydown agreement.

 

        Buydown Period:   As defined in Section 3.21(b).

 

        Cash   Liquidation:   As to   any   defaulted   Mortgage   Loan   other   than a

Mortgage Loan as to which an REO Acquisition   occurred,   a determination   by the

Servicer that it has received all Insurance Proceeds,   Liquidation   Proceeds and

other   payments or cash   recoveries   which the Servicer   reasonably   and in good

faith expects to be finally recoverable with respect to such Mortgage Loan.

 

        Certificate:   Any Class A, Class IO, Class PO, Class M, Class B or Class

R Certificate.

 

 

 

                                       7

<PAGE>

 

         Certificate Owner: With respect to a Book-Entry Certificate,   the Person

who is the beneficial owner of such Certificate, as reflected on the books of an

indirect participating brokerage firm for which a Depository Participant acts as

agent, if any, and otherwise on the books of a Depository   Participant,   if any,

and otherwise on the books of the Depository.

 

        Certificate Principal Balance:   With respect to each Certificate,   other

than the Interest Only   Certificates,   on any date of   determination,   an amount

equal to:

 

(i)             the Initial Certificate   Principal Balance of such Certificate as

               specified on the face thereof; plus

 

(ii)            in the case of the Class A-6 Certificates, an amount equal to the

                aggregate Accrued   Certificate   Interest added to the Certificate

               Principal    Balance   of   the   Class   A-6    Certificates   on   each

               Distribution   Date   on   or   prior   to   the   Class   A-6   Accretion

               Termination Date; plus

 

(iii)           in the case of the Class A-7 Certificates, an amount equal to the

               aggregate Accrued   Certificate   Interest added to the Certificate

               Principal    Balance   of   the   Class   A-7    Certificates   on   each

               Distribution   Date   on   or   prior   to   the   Class   A-7   Accretion

               Termination Date; plus

 

(iv)            any   Subsequent   Recoveries   added to the   Certificate   Principal

               Balance of such Certificate pursuant to Section 4.02(e); minus

 

(v)             the   sum   of   (x)   the    aggregate   of   all   amounts    previously

               distributed   with respect to such Certificate (or any predecessor

               Certificate)   and   applied   to reduce the   Certificate   Principal

               Balance thereof pursuant to Section 4.02 and (y) the aggregate of

               all   reductions in Certificate   Principal   Balance deemed to have

               occurred in connection with Realized Losses which were previously

                allocated to such   Certificate (or any   predecessor   Certificate)

               pursuant to Section 4.05;

 

provided,   however,   that the   Certificate   Principal   Balance   of the   Class of

Subordinate   Certificates   with the Lowest   Priority   at any given time shall be

calculated to equal the Percentage   Interest evidenced by such Certificate times

the excess,   if any, of (A) the then aggregate Stated   Principal   Balance of the

Mortgage Loans over (B) the then aggregate   Certificate Principal Balance of all

other Classes of Certificates then   outstanding.   The Interest Only Certificates

will not have a Certificate Principal Balance.

 

        Certificate Register and Certificate Registrar:   The register maintained

and the registrar appointed pursuant to Section 5.02.

 

        Certificateholder   or Holder:   The Person in whose name a Certificate is

registered   in the   Certificate   Register,   except that   neither a   Disqualified

Organization   nor a   Non-United   States   Person   shall be a holder   of a Class R

Certificate   for   purposes   hereof   and,   solely   for the   purpose of giving any

consent or direction pursuant to this Agreement,   any Certificate,   other than a

Class R Certificate,   registered in the name of the Company, the Servicer or any

Subservicer or any Affiliate   thereof shall be deemed not to be outstanding   and

the Percentage   Interest or Voting Rights   evidenced   thereby shall not be taken

into account in determining whether the requisite amount of Percentage Interests

or Voting   Rights   necessary to effect any such   consent or   direction   has been

obtained.   All   references   herein to   "Holders" or   "Certificateholders"   shall

reflect the rights of Certificate   Owners as they may   indirectly   exercise such

rights through the   Depository   and   participating   members   thereof,   except as

otherwise   specified   herein;   provided,   however,   that   the   Trustee   shall be

required to   recognize as a "Holder" or   "Certificateholder"   only the Person in

whose name a Certificate is registered in the Certificate Register.

 

 

                                       8

<PAGE>

 

        Class:    Collectively,    all   of   the   Certificates    bearing   the   same

designation.

 

        Class A Certificates:   Collectively,   the Class A-1 Certificates,   Class

A-2   Certificates,   Class A-3 Certificates,   Class A-4   Certificates,   Class A-5

Certificates,    Class   A-6   Certificates,   Class   A-7   Certificates,   Class   A-8

Certificates,   Class A-9   Certificates,   Class   A-10   Certificates,   Class   A-11

Certificates, Class A-12 Certificates and Class A-13 Certificates.

 

        Class A-1 Certificate:   Any one of the Class A-1 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form hereto as Exhibit A, each such Certificate representing (i) an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions and (ii) the right to receive payments under the Class A-1/A-13 Hedge

Agreement.

 

        Class   A-1/A-13   Hedge   Agreement:   The   confirmation,   dated   as of the

Closing Date,   between the Trustee,   on behalf of the Trust Fund,   and the Hedge

Agreements   Provider,   relating   to the   Class   A-1,   Class   A-13   and   Class IO

Certificates or any replacement,   substitute, collateral or other arrangement in

lieu thereof.

 

        Class A-1/A-13 Hedge Payment: For any Distribution Date, the payment, if

any,   due   under   the   Class   A-1/A-13   Hedge    Agreement   in   respect   of   such

Distribution Date.

 

        Class A-2 Certificate:   Any one of the Class A-2 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form hereto as Exhibit A, each such Certificate representing (i) an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions   and (ii) the   right to   receive   payments   under the Class A-2 Hedge

Agreement.

 

        Class A-2 Hedge   Agreement:   The   confirmation,   dated as of the Closing

Date, between the Trustee, on behalf of the Trust Fund, and the Hedge Agreements

Provider,   relating to the Class A-2   Certificates   and Class IO Certificates or

any replacement, substitute, collateral or other arrangement in lieu thereof.

 

        Class A-2 Hedge Payment: For any Distribution Date, the payment, if any,

due under the Class A-2 Hedge Agreement in respect of such Distribution Date.

 

        Class A-3 Certificate:   Any one of the Class A-3 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   hereto as Exhibit A, each such   Certificate   representing   an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions.

 

        Class A-4 Certificate:   Any one of the Class A-4 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   hereto as Exhibit A, each such   Certificate   representing   an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions.

 

        Class   A-4/A-10/A-11   Lockout   Distribution   Amount: With respect to any

Distribution   Date, an amount equal to the product of (a) the Lockout Percentage

for that Distribution Date and (b) the Class A-4/A-10/A-11 Pro Rata Distribution

Amount for such   Distribution   Date.   In no event shall the Class   A-4/A-10/A-11

Lockout   Distribution Amount for a Distribution Date exceed the Senior Principal

Distribution   Amount for that   Distribution   Date or the   aggregate   Certificate

Principal   Balance   of the Class A-4,   Class   A-10 and Class   A-11   Certificates

immediately prior to such Distribution Date.

 

 

 

                                       9

<PAGE>

 

        Class   A-4/A-10/A-11 Pro Rata Distribution   Amount:   With respect to any

Distribution   Date,   an   amount   equal to the   product   of (a) a   fraction,   the

numerator of which is the aggregate   Certificate   Principal Balance of the Class

A-4,   Class   A-10   and   Class   A-11   Certificates    immediately   prior   to   such

Distribution   Date and the   denominator   of which is the   aggregate   Certificate

Principal   Balance   of all   Classes   of   Certificates   other   than the   Class PO

Certificates   immediately   prior to that Distribution Date and (b) the aggregate

scheduled and   unscheduled   payments of principal on the   Non-Discount   Mortgage

Loans for such Distribution Date.

 

        Class A-5 Certificate:   Any one of the Class A-5 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   hereto as Exhibit A, each such   Certificate   representing   an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions.

 

        Class A-5 Lockout   Distribution Amount: With respect to any Distribution

Date, the product of (a) the Lockout   Percentage for that   Distribution Date and

(b) the Class A-5 Pro Rata Distribution Amount for that Distribution Date. In no

event shall the Class A-5 Lockout   Distribution   Amount for a Distribution   Date

exceed the Senior Principal   Distribution   Amount minus the Class   A-4/A-10/A-11

Lockout   Distribution   Amount   for   such   Distribution   Date or the   Certificate

Principal   Balance   of the   Class   A-5   Certificates   immediately   prior to such

Distribution Date.

 

        Class A-5 Percentage: With respect to any Distribution Date, the product

of (a) a   fraction,   the   numerator   of which is the sum of (i) the   Certificate

Principal   Balance   of the   Class   A-5   Certificates   immediately   prior to such

Distribution   Date   and (ii)   $13,601,000   and the   denominator   of which is the

aggregate   Certificate Principal Balance of the Class A-1, Class A-2, Class A-5,

Class A-7 and Class A-13   Certificates   immediately   prior to such   Distribution

Date and (b) the Lockout Percentage.

 

        Class A-5 Pro Rata Distribution Amount: With respect to any Distribution

Date,   an amount equal to the product of (a) a fraction,   the numerator of which

is the sum of (i) Certificate   Principal   Balance of the Class A-5   Certificates

immediately   prior   to   such   Distribution   Date   and   (ii)$13,601,000   and   the

denominator of which is the aggregate Certificate Principal Balance of the Class

A-1,   Class A-2, Class A-5,   Class A-7 and Class A-13   Certificates   immediately

prior to that Distribution Date and (b) the Senior Principal Distribution Amount

minus the Class   A-4/A-10/A-11   Lockout   Distribution   Amount, in each case, for

such Distribution Date.

 

        Class A-6 Certificate:   Any one of the Class A-6 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   hereto as Exhibit A, each such   Certificate   representing   an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions.

 

        Class A-6 Accretion   Termination   Date:   The earlier to occur of (i) the

Distribution   Date on which the aggregate   Certificate   Principal Balance of the

Class A-1, Class A-2, Class A-5, Class A-7 and Class A-13   Certificates has been

reduced to zero and (ii) the Credit Support Depletion Date.

 

        Class A-6 Accrual   Distribution Amount: On each Distribution Date (a) on

or prior to the Class A-6   Accretion   Termination   Date,   an amount equal to the

lesser of (i) the aggregate amount of Accrued Certificate   Interest on the Class

A-6 Certificates for such date, which will be added to the Certificate Principal

Balance   of the   Class   A-6   Certificates   and   (ii) the   aggregate   Certificate

Principal   Balance of the Class A-1,   Class A-2,   Class A-5, Class A-7 and Class

A-13   Certificates   immediately   prior   to   such   Distribution   Date;   provided,

however,   that if the Class A-6   Accretion   Termination   Date is also the Credit

Support Depletion Date, the Class A-6 Accrual Distribution Amount shall be zero,

and (b) after the Class A-6 Accretion Termination Date, an amount equal to zero.

 

 

 

                                       10

<PAGE>

 

        Class A-7 Certificate:   Any one of the Class A-7 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   hereto as Exhibit A, each such   Certificate   representing   an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions.

 

        Class A-7 Accretion   Termination   Date:   The earlier to occur of (i) the

Distribution   Date on which the aggregate   Certificate   Principal Balance of the

Class A-2   Certificates   has been   reduced to zero and (ii) the   Credit   Support

Depletion Date.

        Class A-7 Accrual   Distribution Amount: On each Distribution Date (a) on

or prior to the Class A-7   Accretion   Termination   Date,   an amount equal to the

lesser of (i) the aggregate amount of Accrued Certificate   Interest on the Class

A-7 Certificates for such date, which will be added to the Certificate Principal

Balance   of the   Class   A-7   Certificates,   and (ii) the   Certificate   Principal

Balance of the Class A-2   Certificates   immediately   prior to such   Distribution

Date;   provided,   however,   that if the Class A-7 Accretion   Termination Date is

also the Credit   Support   Depletion   Date,   the Class A-7   Accrual   Distribution

Amount shall be zero, and (b) after the Class A-7 Accretion Termination Date, an

amount equal to zero.

 

        Class A-8 Certificate:   Any one of the Class A-8 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   hereto as Exhibit A, each such   Certificate   representing   an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions.

 

        Class A-9 Certificate:   Any one of the Class A-9 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   hereto as Exhibit A, each such   Certificate   representing   an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions.

 

        Class A-10 Certificate: Any one of the Class A-10 Certificates, executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   hereto as Exhibit A, each such   Certificate   representing   an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions.

 

        Class A-11 Certificate: Any one of the Class A-11 Certificates, executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   hereto as Exhibit A, each such   Certificate   representing   an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions.

 

        Class A-12 Certificate: Any one of the Class A-12 Certificates, executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   hereto as Exhibit A, each such   Certificate   representing   an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions.

 

        Class A-13 Certificate: Any one of the Class A-13 Certificates, executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form hereto as Exhibit A, each such Certificate representing (i) an interest

designated   as a   "regular   interest"   in REMIC   II for   purposes   of the   REMIC

Provisions and (ii) the right to receive payments under the Class A-1/A-13 Hedge

Agreement.

 

                                        11

<PAGE>

 

        Class B Certificates:   Collectively,   the Class B-1, Class B-2 and Class

B-3 Certificates.

 

        Class B-1 Certificate:   Any one of the Class B-1 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   annexed   hereto as Exhibit C, each such   Certificate   representing   an

interest   designated   as a "regular   interest"   in REMIC II for   purposes of the

REMIC Provisions.

 

        Class B-2 Certificate:   Any one of the Class B-2 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   annexed   hereto as Exhibit C, each such   Certificate   representing   an

interest   designated   as a "regular   interest"   in REMIC II for   purposes of the

REMIC Provisions.

 

        Class B-3 Certificate:   Any one of the Class B-3 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form annexed hereto as Exhibit C,   representing an interest   designated as a

"regular interest" in REMIC II for purposes of the REMIC Provisions.

 

        Class IO Certificate:   Any one of the Certificates designated as a Class

IO   Certificate,   executed by the Trustee and   authenticated   by the Certificate

Registrar   substantially   in the form annexed   hereto as Exhibit A-2,   each such

Certificate   representing (i) an interest   designated as a "regular interest" in

REMIC II for   purposes   of the REMIC   Provisions   and (ii) the right to   receive

payments under the Hedge Agreements.

 

        Class M Certificates:   Collectively,   the Class M-1, Class M-2 and Class

M-3 Certificates.

 

        Class M-1 Certificate:   Any one of the Class M-1 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   annexed   hereto as Exhibit B, each such   Certificate   representing   an

interest   designated   as a "regular   interest"   in REMIC II for   purposes of the

REMIC Provisions.

 

        Class M-2 Certificate:   Any one of the Class M-2 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   annexed   hereto as Exhibit B, each such   Certificate   representing   an

interest   designated   as a "regular   interest"   in REMIC II for   purposes of the

REMIC Provisions.

 

        Class M-3 Certificate:   Any one of the Class M-3 Certificates,   executed

by the Trustee and authenticated by the Certificate   Registrar   substantially in

the form   annexed   hereto as Exhibit B, each such   Certificate   representing   an

interest   designated   as a "regular   interest"   in REMIC II for   purposes of the

REMIC Provisions.

 

        Class PO Certificate:   Any one of the Certificates designated as a Class

PO   Certificate,   executed by the Trustee and   authenticated   by the Certificate

Registrar   substantially   in the form annexed   hereto as Exhibit A-3,   each such

Certificate representing an interest designated as a "regular interest" in REMIC

II for purposes of the REMIC Provisions.

 

         Class PO Collection   Shortfall:   With respect to the Cash Liquidation or

REO   Disposition   of a Discount   Mortgage Loan and any   Distribution   Date,   the

excess of the amount   described in clause   (a)(iii)(1)   of the definition of the

Class PO   Principal   Distribution   Amount   over the amount   described   in clause

(a)(iii)(2) of the definition of the Class PO Principal Distribution Amount.

 

                                       12

<PAGE>

 

        Class PO Principal Distribution Amount:   On each Distribution Date:

 

        (a) prior to the Credit Support   Depletion   Date, an amount equal to the

aggregate of:

 

               (i) The related   Discount   Fraction of the   principal   portion of

        each   Monthly   Payment   on each   Discount   Mortgage   Loan due during the

        related Due Period,   whether or not   received on or prior to the related

        Determination Date, minus the Discount Fraction of the principal portion

        of   any   related   Debt   Service   Reduction   which   together   with   other

         Bankruptcy Losses exceeds the Bankruptcy Amount;

 

               (ii) The related   Discount   Fraction of the principal   portion of

        all   unscheduled   collections   on each   Discount   Mortgage Loan received

        during   the   preceding   calendar   month   or,   in the   case of   Principal

        Prepayments in Full,   during the related   Prepayment   Period (other than

        amounts    received   in   connection   with   a   Cash    Liquidation   or   REO

        Disposition   of a   Discount   Mortgage   Loan   described   in clause   (iii)

        below),   including   Principal   Prepayments   in   Full,   Curtailments   and

        repurchases   (including   deemed   repurchases   under Section   3.07(b)) of

        Discount   Mortgage Loans (or, in the case of a substitution of a Deleted

        Mortgage   Loan,   the   Discount   Fraction of the amount of any   shortfall

        deposited    in   the    Custodial    Account    in    connection    with   such

        substitution);

 

               (iii) In connection with the Cash   Liquidation or REO Disposition

        of a Discount   Mortgage   Loan that did not result in any Excess   Special

        Hazard   Losses,    Excess   Fraud   Losses,   Excess   Bankruptcy   Losses   or

        Extraordinary   Losses,   an   amount   equal   to   the   lesser   of   (1)   the

        applicable   Discount   Fraction of the Stated   Principal   Balance of such

        Discount   Mortgage Loan immediately   prior to such Distribution Date and

        (2) the aggregate amount of the collections on such Mortgage Loan to the

        extent applied as recoveries of principal;

 

               (iv)   Any   amounts    allocable   to   principal   for   any   previous

        Distribution   Date   (calculated   pursuant to clauses   (i) through   (iii)

        above) that remain undistributed; and

 

               (v) The   amount of any Class PO   Collection   Shortfalls   for such

        Distribution   Date and the amount of any Class PO Collection   Shortfalls

        remaining   unpaid for all previous   Distribution   Dates, but only to the

         extent of the Eligible Funds for such Distribution Date; and

 

        (b) On or after the Credit   Support   Depletion   Date, an amount equal to

the   Discount   Fraction   of the   principal   portion of   scheduled   payments   and

unscheduled   collections   received or   advanced in respect of Discount   Mortgage

Loans.

 

        Class Principal   Balance:   For any Class of REMIC I Regular Interests or

REMIC II Regular   Interests,   the   applicable   initial Class   Principal   Balance

therefor set forth in the Preliminary   Statement   hereto,   corresponding   to the

rights of such Class in payments of principal   due to be passed   through to such

Class   from   principal   payments   on the   Mortgage   Loans or the REMIC I Regular

Interests,   as applicable,   as reduced from time to time by (x) distributions of

principal to such Class and (y) the portion of Realized Losses   allocated to the

Class   Principal   Balance of such Class   pursuant to the definition of "Realized

Loss" with respect to a given   Distribution   Date and as increased by Subsequent

Recoveries   allocated   in   respect   thereof.   For   any   Distribution   Date,   the

reduction   of the Class   Principal   Balance   of any   REMIC I   Regular   Interests

pursuant to the definition of "Realized Loss" shall be deemed   effective   before

the   determination   and   distribution of principal on such Class pursuant to the

definition   of "REMIC I   Distribution   Amount"   and the   reduction   of the Class

Principal Balance of any REMIC II Regular   Interests   pursuant to the definition

of   "Realized   Loss"   shall be   deemed   effective   after the   determination   and

distribution   of principal on such Class pursuant to the definition of "REMIC II

Distribution Amount."

 

                                       13

<PAGE>

 

        Notwithstanding   the   foregoing,   any amounts   distributed in respect of

principal   losses   pursuant to paragraph   (e)(i) of the   definition   of "REMIC I

Distribution Amount" shall not cause a reduction in the Class Principal Balances

of the REMIC I or REMIC II Regular Interests.

 

        Class R Certificate: Any one of the Class R Certificates executed by the

Trustee and authenticated by the Certificate Registrar substantially in the form

annexed hereto as Exhibit D and evidencing   ownership of interests designated as

"residual   interests"   in   REMIC   I and   REMIC   II for   purposes   of   the   REMIC

Provisions.   Component I of the Class R   Certificate   is   designated as the sole

class   of   "residual   interest"   in   REMIC   I and   Component   II of the   Class R

Certificate is designated as the sole class of "residual interest" in REMIC II.

 

        Closing Date:   June 29, 2005.

 

        Code:   The Internal Revenue Code of 1986, as amended.

 

        Compensating Interest:   With respect to any Distribution Date, an amount

(but not in excess of the   Servicing   Fee for such   Distribution   Date) equal to

Prepayment   Interest   Shortfalls   resulting from   Principal   Prepayments in Full

during the period from the 16th day   through the last day of the prior   calendar

month and resulting from Curtailments during the prior calendar month.

 

        Cooperative:   A private,   cooperative   housing corporation which owns or

leases land and all or part of a building or   buildings,   including   apartments,

spaces used for commercial   purposes and common areas therein and whose board of

directors authorizes, among other things, the sale of Cooperative Stock.

 

        Cooperative   Apartment:   A dwelling   unit in a   multi-dwelling   building

owned or leased by a   Cooperative,   which unit the   Mortgagor   has an   exclusive

right to   occupy   pursuant   to the   terms of a   proprietary   lease or   occupancy

agreement.

 

        Cooperative   Lease:   With respect to a Cooperative Loan, the proprietary

lease or occupancy agreement with respect to the Cooperative   Apartment occupied

by the Mortgagor and relating to the related   Cooperative   Stock, which lease or

agreement   confers an exclusive right to the holder of such Cooperative Stock to

occupy such apartment.

 

        Cooperative   Loans:   Any of the   Mortgage   Loans   made in   respect   of a

Cooperative   Apartment,   evidenced   by a   Mortgage   Note   and   secured   by (i) a

Security   Agreement,   (ii) the related   Cooperative Stock Certificate,   (iii) an

assignment of the Cooperative   Lease, (iv) financing   statements and (v) a stock

power (or other   similar   instrument),   and   ancillary   thereto,   a   recognition

agreement   between the Cooperative   and the originator of the Cooperative   Loan,

each of which was   transferred   and assigned to the Trustee   pursuant to Section

2.01 and are from time to time held as part of the Trust Fund.

 

        Cooperative   Stock:   With   respect   to a   Cooperative   Loan,   the single

outstanding class of stock,   partnership   interest or other ownership instrument

in the related Cooperative.

         Cooperative Stock   Certificate:   With respect to a Cooperative Loan, the

stock certificate or other instrument evidencing the related Cooperative Stock.

 

        Corporate Trust Office:   The principal office of the Trustee at which at

any particular   time its corporate trust business with respect to this Agreement

shall   be   administered,   which   office   at the   date of the   execution   of this

instrument   is   located at 1761 East St.   Andrew   Place,   Santa Ana,   California

92705-4934,   GMACM Mortgage Pass-Through Certificates,   Series 2005-AF1. For the

purpose of registration,   transfer and exchange only, the Corporate Trust Office

shall be DTC Transfer Services, 55 Water Street,   Jeanette Street Park Entrance,

New York, New York 10041 or such other office as designated by the Trustee.

 

                                       14

<PAGE>

 

        Credit Support Depletion Date: The first   Distribution Date on which the

Certificate Principal Balances of the Subordinate Certificates have been reduced

to zero.

 

        Curtailment: Any Principal Prepayment made by a Mortgagor which is not a

Principal Prepayment in Full.

 

        Custodial   Account:   The   custodial   account   or   accounts   created   and

maintained pursuant to Section 3.07, into which the amounts set forth in Section

3.07 shall be deposited directly.

 

        Custodial   Agreement:   An   agreement   that may be entered into among the

Servicer,   the Trustee and a Custodian pursuant to which the Custodian will hold

certain documents relating to the Mortgage Loans on behalf of the Trustee.

 

        Custodian:   A custodian appointed pursuant to a Custodial Agreement.

 

        Cut-off Date:   June 1, 2005.

 

        Cut-off Date   Principal   Balance:   As to any Mortgage   Loan,   the unpaid

principal   balance   thereof   at the   Cut-off   Date   after   giving   effect to all

installments of principal due on or prior thereto, whether or not received.

 

        Debt Service   Reduction:   With respect to any Mortgage Loan, a reduction

in the scheduled   Monthly Payment for such Mortgage Loan by a court of competent

jurisdiction in a proceeding under the Bankruptcy Code,   except such a reduction

constituting a Deficient   Valuation or any reduction that results in a permanent

forgiveness of principal.

 

        Deficient Valuation: With respect to any Mortgage Loan, a valuation by a

court of competent jurisdiction of the Mortgaged Property in an amount less than

the then outstanding   indebtedness   under the Mortgage Loan, or any reduction in

the amount of   principal to be paid in   connection   with any   scheduled   Monthly

Payment that constitutes a permanent   forgiveness of principal,   which valuation

or reduction results from a proceeding under the Bankruptcy Code.

 

        Definitive    Certificate:    Any   Certificate   other   than   a   Book-Entry

Certificate.

 

        Deleted Mortgage Loan: A Mortgage Loan replaced or to be replaced with a

Qualified Substitute Mortgage Loan.

 

        Delinquent:   As used herein, a Mortgage Loan is considered to be: "30 to

59 days" or "30 or more days" delinquent when a payment due on any scheduled due

date   remains   unpaid   as of the   close of   business   on the last   business   day

immediately   prior to the next following   monthly   scheduled due date; "60 to 89

days" or "60 or more days"   delinquent   when a payment due on any   scheduled due

date   remains   unpaid   as of the   close of   business   on the last   business   day

immediately prior to the second following monthly scheduled due date; and so on.

The   determination   as to whether a Mortgage Loan falls into these categories is

made as of the close of business   on the last   business   day of each month.   For

example, a Mortgage Loan with a payment due on July 1 that remained unpaid as of

the close of   business on July 31 would then be   considered   to be 30 to 59 days

delinquent.   Delinquency   information   as of the Cut-off Date is determined   and

prepared as of the close of business on the last business day immediately   prior

to the Cut-off Date.

 

                                       15

<PAGE>

 

         Depository:   The Depository Trust Company,   or any successor   Depository

hereafter   named.   The   nominee   of   the   initial   Depository   for   purposes   of

registering those Certificates that are to be Book-Entry   Certificates is Cede &

Co. The Depository shall at all times be a "clearing   corporation" as defined in

Section   8-102(a)(5) of the Uniform Commercial Code of the State of New York and

a "clearing agency" registered   pursuant to the provisions of Section 17A of the

Securities Exchange Act of 1934, as amended.

 

        Depository   Participant:   A   broker,   dealer,   bank or   other   financial

institution   or other   Person   for whom from time to time a   Depository   effects

book-entry transfers and pledges of securities deposited with the Depository.

 

         Determination   Date: With respect to any Distribution Date, the 15th day

(or if such   15th   day is not a   Business   Day,   the   Business   Day   immediately

following such 15th day) of the month of the related Distribution Date.

 

        Discount   Fraction:   With respect to each Discount   Mortgage   Loan,   the

fraction   expressed as a percentage,   the numerator of which is the Discount Net

Mortgage Rate minus the Net Mortgage Rate (or the initial Net Mortgage Rate with

respect to any Discount Mortgage Loans as to which the Mortgage Rate is modified

pursuant to 3.07(a)) for such Mortgage Loan and the   denominator of which is the

Discount Net Mortgage Rate. The Discount   Fraction with respect to each Discount

Mortgage Loan is set forth as on Exhibit O attached hereto.

 

        Discount Mortgage Loan: Any Mortgage Loan having a Net Mortgage Rate (or

the initial Net Mortgage   Rate) of less than the Discount Net Mortgage   Rate per

annum and any Mortgage   Loan deemed to be a Discount   Mortgage   Loan pursuant to

the definition of Qualified Substitute Mortgage Loan.

 

        Discount Net Mortgage Rate:   5.75% per annum.

 

        Disqualified   Organization:   Any organization defined as a "disqualified

organization"   under   Section   860E(e)(5)   of the   Code,   and   if not   otherwise

included,   any of the following:   (i) the United States,   any State or political

subdivision   thereof,   any   possession   of the United   States,   or any agency or

instrumentality of any of the foregoing (other than an instrumentality   which is

a   corporation   if all of its   activities   are   subject   to tax and,   except for

Freddie   Mac, a   majority   of its board of   directors   is not   selected   by such

governmental unit), (ii) a foreign government,   any international   organization,

or any agency or instrumentality of any of the foregoing, (iii) any organization

(other than certain farmers' cooperatives   described in Section 521 of the Code)

which is exempt from the tax imposed by Chapter 1 of the Code (including the tax

imposed by Section 511 of the Code on unrelated   business taxable income),   (iv)

rural electric and telephone   cooperatives described in Section 1381(a)(2)(C) of

the Code, (v) any "electing large   partnership," as defined in Section 775(a) of

the Code and (vi) any other Person so   designated   by the Trustee   based upon an

Opinion   of   Counsel   that the   holding of an   Ownership   Interest   in a Class R

Certificate   by such   Person may cause the Trust   Fund or any   Person   having an

Ownership   Interest in any Class of   Certificates   (other   than such   Person) to

incur a liability   for any   federal   tax   imposed   under the Code that would not

otherwise be imposed but for the Transfer of an Ownership   Interest in a Class R

Certificate    to   such   Person.    The   terms    "United    States,"    "State"   and

"international   organization"   shall have the meanings set forth in Section 7701

of the Code or successor provisions.

 

        Distribution   Date:   The 25th day of any   month   beginning   in the month

immediately   following the month of the initial issuance of the Certificates or,

if such 25th day is not a Business Day, the Business Day   immediately   following

such 25th day.

 

        Due Date: With respect to any   Distribution   Date and any Mortgage Loan,

the day during the related Due Period on which the Monthly Payment is due.

 

                                       16

<PAGE>

 

        Due Period:   With   respect to each   Distribution   Date and any   Mortgage

Loan, the period commencing on the second day of the month prior to the month in

which such   Distribution Date occurs and ending on the first day of the month in

which such Distribution Date occurs.

 

        Eligible   Account:   An   account   that   is   any   of   the   following:   (i)

maintained with a federal or state chartered depository institution the accounts

of which are insured by the FDIC (to the limits established by the FDIC) and the

short-term debt ratings and the long-term   deposit ratings of which are rated in

one of the two highest rating categories by the Rating Agencies, or (ii) a trust

account or   accounts   maintained   with a federal or state   chartered   depository

institution or trust company with trust powers acting in its fiduciary   capacity

subject to regulations   regarding fiduciary funds on deposit similar to Title 12

of the Code of Federal Regulation   Section 9.10(b),   or (iii) in the case of the

Payment Account,   a trust account or accounts   maintained in the corporate trust

division   of the   Trustee,   or (iv)   an   account   or   accounts   of a   depository

institution   acceptable   to each Rating   Agency (as evidenced in writing by each

Rating   Agency   that use of any such   account   as the   Custodial   Account or the

Payment Account will not reduce the rating assigned to any Class of Certificates

by such Rating Agency below the lower of the   then-current   rating or the rating

assigned to such Certificates as of the Closing Date by such Rating Agency).

 

        Eligible Funds: On any   Distribution   Date, the portion,   if any, of the

Available   Distribution   Amount   remaining after reduction by the sum of (i) the

aggregate   amount   of   Accrued   Certificate    Interest   on   the   related   Senior

Certificates,   (ii) the related Senior Principal Distribution Amount (determined

without regard to Section   4.02(a)(v)(D)   hereof),   (iii) the Class PO Principal

Distribution    Amount   (determined   without   regard   to   clause   (a)(v)   of   the

definition   thereof),   (iv) the aggregate amount of Accrued Certificate Interest

on the Class M, Class B-1 and Class B-2 Certificates, and (v) the portion of the

payment to the Trustee for any servicing   transfer expenses   reimbursable to the

Trustees pursuant to Section 7.02(a).

 

        Event of Default:   As defined in Section 7.01.

 

        Excess   Bankruptcy Loss: Any Bankruptcy Loss, or portion thereof,   which

exceeds the then applicable Bankruptcy Amount.

 

        Excess Fraud Loss: Any Fraud Loss, or portion thereof, which exceeds the

then applicable Fraud Loss Amount.

 

        Excess Special Hazard Loss: Any Special Hazard Loss, or portion thereof,

that exceeds the then applicable Special Hazard Amount.

 

        Excess   Subordinate   Principal Amount:   With respect to any Distribution

Date on which   the   aggregate   Certificate   Principal   Balance   of the   Class of

Subordinate   Certificates   then   outstanding   with the Lowest   Priority is to be

reduced to zero and on which   Realized   Losses are to be allocated to such class

or classes,   the   excess,   if any,   of (i) the amount   that would   otherwise   be

distributable   in respect of principal on such class or classes of   Certificates

on such   Distribution   Date   over   (ii) the   excess,   if any,   of the   aggregate

Certificate    Principal   Balance   of   such   class   or   classes   of   Certificates

immediately   prior to such   Distribution   Date   over   the   aggregate   amount   of

Realized Losses to be allocated to such class or classes of Certificates on such

Distribution Date as reduced by any amount calculated   pursuant to clause (a)(v)

of the definition of Class PO Principal Distribution Amount.

 

 

                                        17

<PAGE>

 

        Extraordinary   Events: Any of the following conditions with respect to a

Mortgaged   Property   (or, with respect to a Cooperative   Loan,   the   Cooperative

Apartment)   or Mortgage   Loan   causing or   resulting   in a loss which causes the

liquidation of such Mortgage Loan:

 

               (a)   losses   that are of the type that   would be   covered   by the

        fidelity bond and the errors and omissions   insurance policy required to

        be   maintained   pursuant   to   Section   3.12(b)   but are in excess of the

        coverage maintained thereunder;

 

               (b)   nuclear    reaction   or   nuclear    radiation   or   radioactive

        contamination,   all whether controlled or uncontrolled, and whether such

         loss be direct   or   indirect,   proximate   or remote or be in whole or in

        part caused by,   contributed   to or aggravated by a peril covered by the

        definition of the term "Special Hazard Loss";

 

               (c) hostile or warlike action in time of peace or war,   including

        action in hindering, combating or defending against an actual, impending

        or expected attack:

 

                      1.      by any government or sovereign power, de jure or de

                             facto,   or by any   authority   maintaining   or using

                             military, naval or air forces; or

 

                      2. by military, naval or air forces; or

 

                      3. by an agent of any such government, power, authority or

forces;

 

               (d) any weapon of war   employing   atomic   fission or   radioactive

        force whether in time of peace or war; or

 

               (e) insurrection, rebellion, revolution, civil war, usurped power

        or action taken by   governmental   authority in   hindering,   combating or

        defending   against   such an   occurrence,   seizure or   destruction   under

        quarantine   or   customs   regulations,    confiscation   by   order   of   any

        government   or   public   authority;   or risks of   contraband   or   illegal

        transportation or trade.

 

        Extraordinary   Losses: Any loss incurred on a Mortgage Loan caused by or

resulting from an Extraordinary Event.

 

        Fannie Mae:   Federal   National   Mortgage   Association,   or Fannie Mae, a

federally chartered and privately owned corporation organized and existing under

the Federal National Mortgage Association Charter Act, or any successor thereto.

 

        FASIT: A "financial asset   securitization   investment   trust" within the

meaning of Section 860L of the Code.

 

        FDIC:   Federal Deposit Insurance Corporation or any successor thereto.

 

        Final   Distribution   Date:   The   Distribution   Date on which   the   final

distribution   in respect of the   Certificates   will be made   pursuant to Section

9.01, which Final   Distribution   Date shall in no event be later than the end of

the 90-day liquidation period described in Section 9.02.

 

        Fitch:   Fitch Ratings or its successor in interest.

 

        Foreclosure   Profits:   With respect to any Distribution   Date or related

Determination   Date and any Mortgage   Loan,   the excess,   if any, of Liquidation

Proceeds,   Insurance Proceeds and REO Proceeds (net of all amounts   reimbursable

therefrom   pursuant to Section   3.10(a)(ii)) in respect of each Mortgage Loan or

REO Property for which a Cash   Liquidation   or REO   Disposition   occurred in the

related   Prepayment   Period over the sum of the unpaid principal balance of such

Mortgage Loan or REO Property (determined, in the case of an REO Disposition, in

accordance   with Section 3.14) plus accrued and unpaid   interest at the Mortgage

Rate on such unpaid   principal   balance from the Due Date to which   interest was

last paid by the Mortgagor to the first day of the month   following the month in

which such Cash Liquidation or REO Disposition occurred.

 

                                       18

<PAGE>

 

        Fraud Loss   Amount:   As of any date of   determination   after the Cut-off

Date, an amount equal to: (X) prior to the first anniversary of the Cut-off Date

an amount equal to 2.00% of the aggregate   outstanding   principal balance of all

of the Mortgage Loans as of the Cut-off Date minus the aggregate amount of Fraud

Losses   allocated   solely to one or more   specific   Classes of   Certificates   in

accordance   with   Section   4.05   since   the   Cut-off   Date   up to   such   date of

determination   and (Y) from the first to the fifth   anniversary   of the   Cut-off

Date,   an amount   equal to (1) the lesser of (a) the Fraud Loss Amount as of the

most   recent   anniversary   of the   Cut-off   Date and (b) 1.00% of the   aggregate

outstanding principal balance of all of the Mortgage Loans as of the most recent

anniversary   of the Cut-off Date minus (2) the aggregate   amount of Fraud Losses

allocated   solely to one or more specific   Classes of Certificates in accordance

with   Section 4.05 since the most recent   anniversary   of the Cut-off Date up to

such date of   determination.   On and after the fifth   anniversary of the Cut-off

Date, the Fraud Loss Amount shall be zero.

 

        The Fraud Loss Amount may be further reduced by the Servicer   (including

accelerating   the manner in which such coverage is reduced)   provided that prior

to any such reduction,   the Servicer shall (i) obtain written   confirmation from

each Rating Agency that such reduction   shall not reduce the rating   assigned to

any   Class   of   Certificates   by such   Rating   Agency   below   the   lower   of the

then-current   rating   or the   rating   assigned   to such   Certificates   as of the

Closing   Date by such   Rating   Agency   and (ii)   provide a copy of such   written

confirmation to the Trustee.

 

        Fraud   Losses:   Losses on Mortgage   Loans as to which there was fraud in

the origination of such Mortgage Loan.

 

        Freddie Mac: Federal Home Loan Mortgage   Corporation,   or Freddie Mac, a

corporate   instrumentality of the United States created and existing under Title

III of the   Emergency   Home Finance Act of 1970,   as amended,   or any   successor

thereto.

 

        GMACM: GMAC Mortgage   Corporation,   a Pennsylvania   corporation,   in its

capacity   as seller of the   Mortgage   Loans to the   Company,   and any   successor

thereto.

 

        Hedge   Agreement:   The Class A-1/A-13   Hedge   Agreement or the Class A-2

Hedge Agreement, as applicable.

 

         Hedge   Agreements   Provider:   Barclays Bank PLC, and its   successors and

assigns   or any   party   to any   replacement,   substitute,   collateral   or   other

arrangement in lieu thereof.

 

        Hedge   Payment:   The Class A-1/A-13 Hedge Payment or the Class A-2 Hedge

Payment, as applicable.

 

        Highest   Priority:   As of   any   date   of   determination,   the   Class   of

Subordinate   Certificates   then   outstanding   with   the   earliest   priority   for

payments pursuant to Section 4.02(a),   in the following order:   Class M-1, Class

M-2, Class M-3, Class B-1, Class B-2 and Class B-3 Certificates.

 

        Independent:   When used with respect to any specified Person, means such

a Person who (i) is in fact   independent   of the   Company,   the Servicer and the

Trustee,   or any   Affiliate   thereof,   (ii) does not have any   direct   financial

interest   or any   material   indirect   financial   interest   in the   Company,   the

Servicer or the Trustee or in an Affiliate   thereof,   and (iii) is not connected

with the Company, the Servicer or the Trustee as an officer, employee, promoter,

underwriter, trustee, partner, director or person performing similar functions.

 

                                       19

<PAGE>

 

        Indirect Depository Participant: An institution that is not a Depository

Participant   but clears   through or   maintains   a   custodial   relationship   with

Participants and has access to the Depository's clearing system.

 

        Initial   Certificate   Principal   Balance:   With respect to each Class of

Certificates,   other   than   the   Interest   Only   Certificates,   the   Certificate

Principal   Balance of such Class of   Certificates as of the Cut-off Date, as set

forth in the Preliminary Statement hereto.

 

        Initial   Subordinate   Class   Percentage:   With   respect to each Class of

Subordinate   Certificates,   an amount   which is equal to the   initial   aggregate

Certificate Principal Balance of such Class of Subordinate   Certificates divided

by the aggregate   Stated   Principal   Balance of all the Mortgage Loans as of the

Cut-off Date as follows:

 

                        Class M-1: 2.97% Class B-1: 0.70%

                        Class M-2: 1.36% Class B-2: 0.35%

                        Class M-3: 1.01% Class B-3: 0.65%

 

        Insurance   Proceeds:   Proceeds   paid in   respect of the   Mortgage   Loans

pursuant to any Primary   Insurance Policy or any other related   insurance policy

covering a   Mortgage   Loan,   to the   extent   such   proceeds   are   payable to the

mortgagee under the Mortgage,   any Subservicer,   the Servicer or the Trustee and

are not applied to the restoration of the related   Mortgaged   Property (or, with

respect to a Cooperative Loan, the related Cooperative Apartment) or released to

the Mortgagor in accordance   with the procedures   that the Servicer would follow

in servicing mortgage loans held for its own account.

 

        Insurer:   Any named   insurer under any Primary   Insurance   Policy or any

successor thereto or the named insurer in any replacement policy.

 

        Interest   Accrual   Period:   With   respect to any Class of   Certificates,

other than the   Variable   Rate   Certificates,   and any   Distribution   Date,   the

thirty-day   period   ending on the last day of the calendar   month   preceding the

month in which such Distribution Date occurs.   With respect to the Variable Rate

Certificates and any Distribution   Date, the thirty-day period ending on the day

preceding such Distribution Date.

 

        Interest Carry Forward Amount:   For any Distribution   Date and the Class

A-1 and Class A-13 Certificates, the sum of:

 

        (1) if on such   Distribution Date the Pass-Through Rate on the Class A-1

and Class A-13   Certificates   is   limited to 5.75%,   the excess of the amount of

interest that the Class A-1 and Class A-13   Certificates,   as applicable,   would

have been   entitled   to receive   on such   Distribution   Date had the   applicable

Pass-Through   Rate been calculated as a per annum rate equal to LIBOR plus 0.30%

over the amount of interest   that the Class A-1 or Class A-13   Certificates,   as

applicable, were entitled to receive on that payment date because the applicable

Pass-Through Rate was calculated at 5.75%; and

 

        (2) the Interest   Carry   Forward   Amount for all   previous   Distribution

Dates for such Class of Certificates not previously paid, together with interest

thereon   at   a   rate   equal   to   the   applicable    Pass-Through   Rate   for   such

Distribution Date.

 

                                       20

<PAGE>

 

        For any Distribution Date and the Class A-2 Certificates, the sum of:

 

         (1) if on such   Distribution Date the Pass-Through Rate on the Class A-2

Certificates is limited to 5.75%,   the excess of the amount of interest that the

Class A-2 Certificates   would have been entitled to receive on that payment date

had the applicable   Pass-Through   Rate been calculated as a per annum rate equal

to LIBOR plus 0.60% over the amount of interest that the Class A-2   Certificates

were   entitled   to receive on such   Distribution   Date   because   the   applicable

Pass-Through Rate was calculated at 5.75%; and

 

        (2) the Interest   Carry   Forward   Amount for all   previous   Distribution

Dates for the Class A-2 Certificates not previously paid, together with interest

thereon   at   a   rate   equal   to   the   applicable    Pass-Through   Rate   for   such

Distribution Date.

 

        Interest   Only   Certificates:   Collectively,   the Class A-8,   Class A-9,

Class A-12 and Class IO Certificates.

 

        Issuer Exemption:   As defined in Section 5.02(e)(ii).

 

        Junior   Certificateholder:   The   Holder   of   not   less   than   95% of the

Percentage Interests of the Junior Class of Certificates.

 

        Junior   Class of   Certificates:   The Class of   Subordinate   Certificates

outstanding   as of the date of the   repurchase   of a Mortgage   Loan   pursuant to

Section 4.07 herein that has the Lowest Priority.

 

        Late   Collections:   With   respect   to any   Mortgage   Loan,   all   amounts

received during any Due Period,   whether as late payments of Monthly Payments or

as Insurance Proceeds,   Liquidation Proceeds or otherwise,   which represent late

payments or   collections   of Monthly   Payments due but delinquent for a previous

Due Period and not previously recovered.

 

        LIBOR: With respect to any Distribution Date, the arithmetic mean of the

London   interbank   offered rate quotations for one-month U.S.   Dollar   deposits,

expressed on a per annum basis, determined in accordance with Section 1.02.

 

        LIBOR   Business Day: Any day other than (i) a Saturday or Sunday or (ii)

a day   on   which   banking   institutions   in   London,   England   are   required   or

authorized by law to be closed.

 

        LIBOR Certificates:   Collectively,   the Class A-1, Class A-2, Class A-8,

Class A-9 and Class A-13 Certificates.

 

        LIBOR Rate Adjustment Date: With respect to each Distribution   Date, the

second LIBOR Business Day immediately   preceding the commencement of the related

Interest Accrual Period.

 

        Liquidation   Proceeds:   Amounts (other than Insurance Proceeds) received

by the Servicer in connection with the taking of an entire Mortgaged Property by

exercise of the power of eminent domain or   condemnation   or in connection   with

the liquidation of a defaulted Mortgage Loan through trustee's sale, foreclosure

sale or otherwise, other than REO Proceeds.

 

         Loan-to-Value   Ratio:   As of any   date,   the   fraction,   expressed   as a

percentage,   the   numerator   of which is the   current   principal   balance of the

related Mortgage Loan at the date of determination   and the denominator of which

is the Appraised Value of the related Mortgaged Property.

 

                                       21

<PAGE>

 

        Lockout   Percentage:   With respect to any   Distribution   Date   occurring

prior   to   the   Distribution   Date   in   July   2010,   0%.   With   respect   to   any

Distribution Date thereafter, the percentage indicated below:

 

           Distribution Date                      Lockout Distribution Percentage

           July 2010 through June 2011                          30%

           July 2011 through June 2012                           40%

           July 2012 through June 2013                          60%

           July 2013 through June 2014                          80%

           July 2014 and thereafter                            100%

 

        Lower   Priority:   As of any   date   of   determination   and any   Class   of

Subordinate   Certificates,   any other   Class of   Subordinate   Certificates   then

outstanding with a later priority for payments pursuant to Section 4.02(a).

 

        Lowest   Priority:   As   of   any   date   of   determination,   the   Class   of

Subordinate   Certificates then outstanding with the latest priority for payments

pursuant to Section 4.02(a), in the following order: Class B-3, Class B-2, Class

B-1, Class M-3, Class M-2 and Class M-1 Certificates.

 

        Maturity   Date:   With   respect   to   each   Class   of   Certificates,    the

Distribution Date occurring in July 2035.

 

        MERS:   Mortgage   Electronic   Registration   Systems,   Inc., a corporation

organized and existing under the laws of the State of Delaware, or any successor

thereto.

 

        MERS(R)   System:    The   system   of   recording    transfers   of   Mortgages

electronically maintained by MERS.

 

        MIN: The Mortgage   Identification   Number for Mortgage Loans   registered

with MERS on the MERS(R) System.

 

        Modified Mortgage Loan: Any Mortgage Loan that has been the subject of a

Servicing Modification.

 

        Modified Net Mortgage   Rate: As to any Mortgage Loan that is the subject

of a Servicing   Modification,   the Net Mortgage Rate minus the rate per annum by

which the Mortgage Rate on such Mortgage Loan was reduced.

 

        MOM   Loan:   With   respect   to any   Mortgage   Loan,   MERS   acting   as the

mortgagee of such Mortgage   Loan,   solely as nominee for the   originator of such

Mortgage Loan and its successors and assigns, at the origination thereof.

 

        Monthly   Payment:   With respect to any Mortgage Loan   (including any REO

Property) and any Due Date, the payment of principal and interest due thereon in

accordance with the amortization   schedule at the time applicable thereto (after

adjustment,   if any, for   Curtailments   and for Deficient   Valuations   occurring

prior to such Due Date but before any adjustment to such   amortization   schedule

by reason of any   bankruptcy,   other   than a   Deficient   Valuation,   or   similar

proceeding or any   moratorium   or similar   waiver or grace period and before any

Servicing Modification that constitutes a reduction of the interest rate on such

Mortgage Loan).

 

        Moody's:   Moody's Investors Service, Inc., or its successor in interest.

 

                                       22

<PAGE>

 

        Mortgage:   With respect to each Mortgage Note related to a Mortgage Loan

which is not a Cooperative Loan, the mortgage, deed of trust or other comparable

instrument   creating   a first   lien on an   estate   in fee   simple   or   leasehold

interest in real property securing a Mortgage Note.

 

        Mortgage   File:   (I) with   respect to each   Mortgage   Loan (other than a

Cooperative Loan):

 

(i)              The original Mortgage Note,   endorsed without recourse in blank,

                or in the name of the   Trustee   as   trustee,   and   signed   by an

                authorized   officer (which   endorsement   shall contain either an

                original   signature or a facsimile   signature   of an   authorized

                officer of GMACM, and if in the form of an allonge,   the allonge

                shall be stapled to the   Mortgage   Note),   with all   intervening

                endorsements    showing   a   complete   chain   of   title   from   the

                originator   to GMACM.   If the Mortgage   Loan was acquired by the

                endorser in a merger,   the endorsement must be by "____________,

                successor by merger to [name of   predecessor]."   If the Mortgage

                Loan was   acquired or   originated   by the   endorser   while doing

                business   under   another   name,   the   endorsement    must   be   by

                "____________ formerly known as [previous name]";

 

(ii)             The   original   Mortgage,   noting the   presence   of the MIN of the

               Mortgage   Loan,   if the   Mortgage   is   registered   on the MERS(R)

               System,   and language   indicating that the Mortgage Loan is a MOM

               Loan   if the   Mortgage   Loan   is a MOM   Loan,   with   evidence   of

               recording   indicated thereon or a copy of the Mortgage   certified

               by the public   recording   office in which such   Mortgage has been

               recorded;

 

(iii)            The original of any   guarantee   executed in   connection   with the

               Mortgage Note, if applicable;

 

(iv)            Any rider or the original of any modification   agreement executed

               in connection   with the related   Mortgage Note or Mortgage,   with

               evidence of recording if required by applicable law;

 

(v)              Unless the Mortgage Loan is registered on the MERS(R) System, an

                original Assignment or Assignments of the Mortgage (which may be

                 included in a blanket   assignment or assignments)   from GMACM to

                "Deutsche   Bank National   Trust   Company,   as Trustee under that

                certain   Pooling and   Servicing   Agreement   dated as of June 29,

                2005,   for   GMACM   Mortgage   Pass-Through   Certificates,   Series

                2005-AF1"   c/o   the   Servicer   at an   address   specified   by the

                Servicer,   and signed by an authorized officer, which assignment

                shall be in form and substance acceptable for recording.   If the

                Mortgage   Loan was   acquired by the   assignor   in a merger,   the

                assignment   must be by " ,   successor   by   merger   to   [name   of

                predecessor]."   If the Mortgage   Loan was acquired or originated

                by the assignor   while doing   business   under another name,   the

                assignment   must be by   "_________   formerly   known as [previous

                name]";

 

(vi)            Originals   of all   intervening   assignments   of   mortgage,   which

               together with the Mortgage   shows a complete   chain of title from

               the   originator   to GMACM (or to MERS,   if the   Mortgage   Loan is

               registered on the MERS(R) System, and which notes the presence of

               a MIN),   with   evidence of   recording   thereon,   or a copy of the

               assignment   certified by the applicable recording office in which

               such assignment has been recorded;

 

(vii)             The   original   mortgagee   policy of title   insurance,   including

                riders and   endorsements   thereto,   or if the policy has not yet

                been   issued,   (i) a written   commitment   or interim   binder for

                title issued by the title   insurance or escrow   company dated as

                of the date the   Mortgage   Loan was funded,   with a statement by

                the   title   insurance   company   or   closing   attorney   that   the

                priority of the lien of the related   Mortgage   during the period

                between the date of the funding of the related Mortgage Loan and

                the date of the related   title policy   (which title policy shall

                be dated   the date of   recording   of the   related   Mortgage)   is

 

 

                                       23

<PAGE>

 

                insured,   or (ii) a   preliminary   title report issued by a title

                insurer   in   anticipation   of issuing a title   insurance   policy

                 which evidences   existing liens and gives a preliminary   opinion

                as to the absence of any   encumbrance   on title to the Mortgaged

                Property,   except   liens to be removed on or before   purchase by

                the    Mortgagor   or   which    constitute    customary    exceptions

                acceptable   to lenders   generally;   or other   evidence   of title

                insurance acceptable to Fannie Mae or Freddie Mac, in accordance

                with   the   Fannie   Mae   Seller/Servicer   Guide   or   Freddie   Mac

                Seller/Servicer Guide, respectively;

 

(viii)          A certified   true copy of any power of attorney,   if   applicable;

               and

 

(ix)            Originals   of any   security   agreement,   chattel   mortgage or the

               equivalent executed in connection with the Mortgage, if any.

 

and (II) with respect to each Cooperative Loan:

 

(i)             The original   Mortgage   Note,   endorsed   without   recourse to the

               order   of   the   Trustee    and    showing   an   unbroken    chain   of

               endorsements from the originator thereof to GMACM;

 

(ii)            A   counterpart   of the   Cooperative   Lease and the   Assignment of

               Proprietary   Lease to the originator of the Cooperative Loan with

               intervening   assignments   showing an unbroken chain of title from

               such originator to the Trustee;

 

(iii)           The   related   Cooperative   Stock   Certificate,   representing   the

                related    Cooperative    Stock    pledged    with   respect   to   such

               Cooperative Loan,   together with an undated stock power (or other

               similar instrument) executed in blank;

 

(iv)            The   original   recognition   agreement by the   Cooperative   of the

               interests    of   the    mortgagee    with   respect   to   the   related

               Cooperative Loan;

 

(v)             The Security Agreement;

 

(vi)            Copies   of   the   original   UCC   financing    statement,    and   any

               continuation    statements,    filed   by   the   originator   of   such

               Cooperative   Loan   as   secured   party,    each   with   evidence   of

               recording   thereof,   evidencing   the   interest of the   originator

                under the Security   Agreement and the   Assignment of   Proprietary

               Lease;

 

(vii)           Copies of the filed UCC assignments or amendments of the security

               interest   referenced   in clause   (vi) above   showing an   unbroken

               chain of title   from the   originator   to the   Trustee,   each with

               evidence of   recording   thereof,   evidencing   the interest of the

               originator   under the Security   Agreement   and the   Assignment of

                Proprietary Lease;

 

(viii)          An executed   assignment of the interest of the   originator in the

               Security   Agreement,   Assignment   of   Proprietary   Lease   and the

               recognition agreement referenced in clause (iv) above, showing an

               unbroken chain of title from the originator to the Trustee;

 

(ix)            The   original   of   each   modification,   assumption   agreement   or

               preferred loan agreement,   if any,   relating to such   Cooperative

                Loan; and

 

                                       24

<PAGE>

 

(x)             A duly completed UCC financing statement showing GMACM as debtor,

               the Company as secured   party and the   Trustee as assignee   and a

               duly   completed   UCC financing   statement   showing the Company as

               debtor   and   the   Trustee   as   secured   party,   each   in   a   form

               sufficient for filing, evidencing the interest of such debtors in

               the Cooperative Loans.

 

It is understood   that the Mortgage   File (other than the Mortgage   Note) may be

retained in microfilm,   microfiche, optical storage or magnetic media in lieu of

hard copy;   provided,   that with respect to any Mortgage Loan not   registered on

the MERS(R) System, the original   Assignments   required by (I)(v) above shall be

retained in the Mortgage File.

 

        Mortgage Loan Schedule: The list or lists of the Mortgage Loans attached

hereto as Exhibit E, as amended   from time to time to reflect   the   addition   of

Qualified   Substitute   Mortgage   Loans,   which list or lists shall set forth the

following information as to each Mortgage Loan:

 

(a) loan number;

 

(b) state code;

 

(c) zip code;

 

(d) the Loan-to-Value Ratio;

 

(e) the original principal balance and date of the Mortgage Note;

 

(f) the first Due Date;

 

(g) the type of Mortgaged Property;

 

(h) the scheduled monthly payment in effect as of the Cut-off Date;

 

(i) the principal balance as of the Cut-off Date;

 

(j) the Mortgage Rate as of the Cut-off Date;

 

(k) the occupancy status;

 

(l) the purpose of the Mortgage Loan;

 

(m) the paid-through date of the Mortgage Loan;

 

(n) the documentation type; and

(o) the code "Y" under the column   "BUYDOWN,"   indicating that the Mortgage Loan

is a Buydown Mortgage Loan, if applicable.

 

        Such   schedule   may consist of multiple   reports that   collectively   set

forth all of the information required.

 

        Mortgage Loans:   Such of the mortgage loans   transferred and assigned to

the Trustee   pursuant to Section 2.01 as from time to time are held or deemed to

be held as a part of the Trust Fund, the Mortgage Loans originally so held being

identified in the initial   Mortgage   Loan   Schedule,   and   Qualified   Substitute

Mortgage Loans held or deemed held as part of the Trust Fund including,   without

limitation,   (i) with respect to each   Cooperative   Loan,   the related   Mortgage

Note,   Security   Agreement,   Assignment of Proprietary Lease,   Cooperative Stock

Certificate,   Cooperative   Lease and Mortgage   File and all rights   appertaining

thereto,   and (ii) with respect to each   Mortgage   Loan other than a Cooperative

Loan,   each related   Mortgage   Note,   Mortgage and Mortgage   File and all rights

appertaining thereto.

 

                                       25

<PAGE>

 

        Mortgage   Note:   The   originally   executed   note or   other   evidence   of

indebtedness   evidencing the   indebtedness of a Mortgagor under a Mortgage Loan,

together with any modification thereto.

 

        Mortgage   Pool:   The pool of mortgage   loans   consisting of the Mortgage

Loans.

 

        Mortgage   Rate: As to any Mortgage   Loan, the interest rate borne by the

related   Mortgage   Note,   or any   modification   thereto   other than a   Servicing

Modification.

 

        Mortgaged   Property:   The underlying   real property   securing a Mortgage

Loan or, with respect to a Cooperative   Loan, the related   Cooperative Lease and

Cooperative Stock.

 

        Mortgagor:   The obligor on a Mortgage Note.

 

        Net Mortgage Rate: As to each Mortgage   Loan, the related   Mortgage Rate

minus the Servicing Fee Rate.

 

        Non-Discount   Mortgage   Loan:   A   Mortgage   Loan that is not a   Discount

Mortgage Loan.

 

        Non-Primary Residence Loans: The Mortgage Loans designated as secured by

second or vacation   residences,   or by   non-owner   occupied   residences,   on the

Mortgage Loan Schedule.

 

        Non-United States Person:   Any Person other than a United States Person.

 

        Nonrecoverable   Advance:   Any Advance   previously made or proposed to be

made by the   Servicer   in   respect   of a   Mortgage   Loan   (other   than a Deleted

Mortgage Loan) which, in the good faith judgment of the Servicer,   will not, or,

in the case of a proposed Advance,   would not, be ultimately   recoverable by the

Servicer   from   related   Late   Collections,    Insurance   Proceeds,    Liquidation

Proceeds,   REO   Proceeds or amounts   reimbursable   to the   Servicer   pursuant to

Section 4.02(a)   hereof.   The   determination   by the Servicer that it has made a

Nonrecoverable    Advance   or   that   any   proposed   Advance   would   constitute   a

Nonrecoverable Advance, shall be evidenced by an Officer's Certificate delivered

to the Company and the Trustee promptly following such determination.

 

        Nonsubserviced   Mortgage   Loan:   Any Mortgage   Loan that, at the time of

reference thereto, is not subject to a Subservicing Agreement.

 

        Notional Amount: With respect to any date of determination and the Class

A-8   Certificates,   an amount equal to the Certificate   Principal Balance of the

Class A-1, Class A-2 and Class A-13 Certificates immediately prior to such date.

With respect to any date of   determination   and the Class A-9   Certificates,   an

amount equal to the aggregate Certificate Principal Balance of the Class A-1 and

Class A-13 Certificates immediately prior to such date. With respect to any date

of determination and the Class A-12 Certificates, an amount equal to the product

of 13.04347% and the Certificate Principal Balance of the Class A-4 Certificates

immediately   prior to such date. With respect to any date of   determination   and

the Class IO   Certificates,   an amount equal to the aggregate   Stated   Principal

Balance of the Non-Discount Mortgage Loans immediately prior to such date.

 

        Officer's   Certificate:   A   certificate   signed by the   Chairman   of the

Board,   the   President or a Vice   President or Assistant   Vice   President,   or a

Director   or   Managing   Director,   and,   if   necessary,   by the   Treasurer,   the

Secretary,   or one of the Assistant   Treasurer or Assistant   Secretaries   of the

Company or the Servicer,   as the case may be, and   delivered to the Trustee,   as

required by this Agreement.

 

                                       26

<PAGE>

 

        Opinion of   Counsel:   A written   opinion of   counsel   acceptable   to the

Trustee and the   Servicer,   who may be counsel for the Company or the   Servicer,

provided   that any   opinion of counsel   (i)   referred   to in the   definition   of

"Disqualified   Organization" or (ii) relating to the   qualification of any REMIC

or compliance with the REMIC Provisions must, unless otherwise specified,   be an

opinion of Independent counsel.

 

        Outstanding   Mortgage   Loan:   As   to   any   Due   Date,   a   Mortgage   Loan

(including an REO Property) which was not the subject of a Principal   Prepayment

in Full,   Cash   Liquidation   or REO   Disposition   and which   was not   purchased,

deleted or substituted for prior to such Due Date pursuant to Section 2.02, 2.04

or 4.07.

 

        Ownership   Interest:   As to any   Certificate,   any ownership or security

interest in such Certificate,   including any interest in such Certificate as the

Holder thereof and any other interest therein, whether direct or indirect, legal

or beneficial, as owner or as pledgee.

 

        Pass-Through   Rate: With respect to the Class A   Certificates,   Class IO

Certificates,    Class   M   Certificates,    Class   B   Certificates    and   Class   R

Certificates   and any   Distribution   Date,   the per annum rates set forth in the

Preliminary   Statement   hereto.   The Class PO Certificates   have no Pass-Through

Rate and are not entitled to Accrued Certificate Interest.

 

        Paying Agent: The Trustee or any successor Paying Agent appointed by the

Trustee.

 

        Payment Account: The separate and segregated account or accounts created

and maintained   pursuant to Section 4.01, which shall be entitled "Deutsche Bank

National   Trust   Company,   as trustee,   in trust for the   registered   holders of

Residential   Asset   Mortgage    Products,    Inc.,   GMACM   Mortgage    Pass-Through

Certificates, Series 2005-AF1" and which must be an Eligible Account.

 

        Payment Account Deposit Date: With respect to any Distribution Date, the

Business Day prior thereto.

 

        Percentage Interest: With respect to any Certificate (other than a Class

IO or Class R Certificate),   the undivided   percentage ownership interest in the

related Class evidenced by such Certificate, which percentage ownership interest

shall be equal to the Initial Certificate   Principal Balance or initial Notional

Amount thereof divided by the aggregate Initial Certificate Principal Balance or

initial Notional Amount of all the Certificates of the same Class.   With respect

to   a   Class   IO   Certificate   or   a   Class   R   Certificate,    the   interest   in

distributions to be made with respect to such Class evidenced thereby, expressed

as a percentage, as stated on the face of each such Certificate.

 

        Permitted Investments:   One or more of the following:

 

               (i)   obligations   of   or   guaranteed   as   to   timely   payment   of

        principal    and   interest   by   the   United    States   or   any   agency   or

        instrumentality   thereof   when such   obligations   are backed by the full

        faith and credit of the United States;

 

               (ii) repurchase agreements on obligations specified in clause (i)

        maturing not more than one month from the date of   acquisition   thereof,

        provided that the unsecured   short-term   debt   obligations   of the party

        agreeing to repurchase   such   obligations   are at the time rated by each

        Rating Agency in its highest short-term rating available;

 

               (iii) federal funds,   certificates of deposit,   demand   deposits,

        time   deposits   and   bankers'   acceptances   (which   shall   each   have an

        original   maturity of not more than 90 days and, in the case of bankers'

        acceptances,   shall in no event have an   original   maturity of more than

        365 days or a remaining   maturity of more than 30 days)   denominated   in

        United   States   dollars   of any   U.S.   depository   institution   or trust

 

 

                                       27

<PAGE>

 

        company   incorporated   under the laws of the United   States or any state

        thereof or of any domestic branch of a foreign depository institution or

        trust company;   provided,   that the short-term debt   obligations of such

        depository   institution   or trust company (or, if the only Rating Agency

        is   Standard   &   Poor's,   in   the   case   of   the   principal    depository

         institution   in   a   depository    institution    holding    company,    debt

        obligations of the depository   institution   holding company) at the date

        of   acquisition   thereof   have been rated by each   Rating   Agency in its

        highest short-term rating available; provided, further, that if the only

        Rating   Agency   is   Standard   & Poor's   and if the   depository   or trust

        company is a principal subsidiary of a bank holding company and the debt

        obligations of such subsidiary are not separately   rated, the applicable

        rating shall be that of the bank   holding   company;   provided,   further,

        that if the original   maturity of such short-term debt   obligations of a

        domestic   branch of a foreign   depository   institution   or trust company

        shall exceed 30 days, the short-term rating of such institution shall be

        A-1+ in the case of Standard & Poor's if Standard & Poor's is the Rating

        Agency;

 

               (iv)    commercial    paper   and   demand   notes   (having    original

        maturities   of not more than 365 days) of any   corporation   incorporated

        under the laws of the United   States or any state   thereof   which on the

        date of acquisition   has been rated by each Rating Agency in its highest

        short-term rating   available;   provided that such commercial paper shall

        have a remaining maturity of not more than 30 days;

 

               (v) any mutual   fund,   money   market   fund,   common trust fund or

         other   pooled   investment   vehicle,   the assets of which are   limited to

        instruments   that   otherwise   would   constitute   Permitted    Investments

        hereunder   and have been   rated by each   Rating   Agency   in its   highest

        short-term rating available,   including any such fund that is managed by

        the Trustee or any   affiliate of the Trustee or for which the Trustee or

        any of its affiliates acts as an adviser; and

 

               (vi) other   obligations or securities that are acceptable to each

        Rating   Agency as a Permitted   Investment   hereunder and will not reduce

        the rating   assigned to any Class of   Certificates by such Rating Agency

        below the lower of the   then-current   rating or the rating   assigned   to

        such   Certificates   as of the   Closing   Date by such Rating   Agency,   as

        evidenced in writing;

 

provided,   however,   no   instrument   shall   be   a   Permitted   Investment   if   it

represents,   either (1) the right to receive only interest payments with respect

to the underlying debt instrument or (2) the right to receive both principal and

interest   payments derived from   obligations   underlying such instrument and the

principal and interest payments with respect to such instrument   provide a yield

to maturity greater than 120% of the yield to maturity at par of such underlying

obligations.   References   herein to the highest   rating   available   on unsecured

long-term   rating   category   available shall mean Aaa in the case of Moody's and

AAA in the case of   Standard & Poor's and Fitch,   and   references   herein to the

highest   short-term   rating   category   available   shall   mean P-1 in the case of

Moody's and A-1+ in the case of Standard & Poor's.

 

        Permitted   Transferee:   Any Transferee of a Class R   Certificate,   other

than a Disqualified Organization or Non-United States Person.

 

        Person:    Any   individual,    corporation,    limited   liability   company,

partnership,    joint    venture,    association,    joint-stock    company,    trust,

unincorporated organization or government or any agency or political subdivision

thereof.

 

                                       28

<PAGE>

 

        Pool Stated Principal   Balance:   With respect to any Distribution   Date,

the aggregate of the Stated Principal Balances of the Mortgage Loans.

 

        Pool Strip Rate:   With respect to each   Mortgage   Loan, a per annum rate

equal to the excess of (a) the Net Mortgage   Rate of such Mortgage Loan over (b)

the Discount Net Mortgage Rate (but not less than 0.00% per annum).

 

        Prepayment   Assumption:    The   prepayment   assumption   of   100%   of   the

prepayment speed assumption,   used for determining the accrual of original issue

discount and market discount and premium on the   Certificates for federal income

tax purposes.

 

        Prepayment   Distribution   Percentage:   With respect to any   Distribution

Date, each Class of Subordinate Certificates, under the applicable circumstances

set forth below, the respective percentages set forth below:

 

                (i) For any Distribution   Date prior to the Distribution   Date in

        July 2010   (unless   the   Certificate   Principal   Balances   of the Senior

        Certificates (other than the Class PO Certificates) have been reduced to

        zero), 0%.

 

               (ii) For any   Distribution   Date for which   clause (i) above does

        not   apply   and on which   any   Class   of   Subordinate   Certificates   are

        outstanding:

 

                      (a) in the case of the Class of   Subordinate   Certificates

        then   outstanding   with the   Highest   Priority   and each other   Class of

        Subordinate   Certificates for which the related Prepayment   Distribution

        Trigger has been satisfied, a fraction,   expressed as a percentage,   the

        numerator of which is the   Certificate   Principal   Balance of such Class

        immediately   prior to such date and the   denominator of which is the sum

        of the Certificate   Principal Balances immediately prior to such date of

        (1) the Class of   Subordinate   Certificates   then   outstanding   with the

        Highest   Priority and (2) all other Classes of Subordinate   Certificates

        for which the   respective   Prepayment   Distribution   Triggers   have been

        satisfied; and

 

                       (b) in   the   case   of   each   other   Class   of   Subordinate

        Certificates   for which the   Prepayment   Distribution   Triggers have not

        been satisfied, 0%; and

 

               (ii)   Notwithstanding   the foregoing,   if the   application of the

        foregoing   percentages on any   Distribution   Date as provided in Section

        4.02   (determined   without   regard to the proviso to the   definition   of

        "Subordinate    Principal    Distribution    Amount")   would   result   in   a

        distribution   in   respect   of   principal   of any   Class   or   Classes   of

        Subordinate   Certificates   in   an   amount   greater   than   the   remaining

        Certificate   Principal   Balance   thereof   (any such   class,   a "Maturing

        Class"),   then:   (a)   the   Prepayment   Distribution   Percentage   of each

        Maturing   Class   shall be   reduced   to a level   that,   when   applied   as

        described above, would exactly reduce the Certificate   Principal Balance

        of such Class to zero;   (b) the   Prepayment   Distribution   Percentage of

        each   other   Class   of   Subordinate   Certificates   (any   such   Class,   a

        "Non-Maturing   Class")   shall be   recalculated   in   accordance   with the

        provisions   in paragraph   (ii) above,   as if the   Certificate   Principal

        Balance of each Maturing Class had been reduced to zero (such percentage

        as recalculated, the "Recalculated Percentage"); (c) the total amount of

        the   reductions   in   the   Prepayment   Distribution   Percentages   of   the

        Maturing   Class or   Classes   pursuant   to clause   (a) of this   sentence,

        expressed   as an   aggregate   percentage,   shall be   allocated   among the

        Non-Maturing   Classes in   proportion   to their   respective   Recalculated

        Percentages (the portion of such aggregate reduction so allocated to any

        Non-Maturing Class, the "Adjustment   Percentage");   and (d) for purposes

        of such   Distribution   Date, the Prepayment   Distribution   Percentage of

 

 

                                       29

<PAGE>

 

        each Non-Maturing   Class shall be equal to the sum of (1) the Prepayment

        Distribution   Percentage   thereof,   calculated   in   accordance   with the

        provisions   in   paragraph   (ii)   above as if the   Certificate   Principal

        Balance of each   Maturing   Class had not been reduced to zero,   plus (2)

        the related Adjustment Percentage.

 

        Prepayment   Distribution   Trigger: With respect to any Distribution Date

and   any   Class   of    Subordinate    Certificates    (other   than   the   Class   M-1

Certificates),   a test that shall be satisfied if the fraction   (expressed   as a

percentage) equal to the sum of the Certificate Principal Balances of such Class

and each Class of Subordinate Certificates with a Lower Priority than such Class

immediately   prior to such   Distribution   Date divided by the   aggregate   Stated

Principal   Balance of all of the   Mortgage   Loans (or   related   REO   Properties)

immediately   prior to such Distribution Date is greater than or equal to the sum

of the related   Initial   Subordinate   Class   Percentages   of such Class and each

Class of Subordinate Certificates with a Lower Priority than such Class.

 

        Prepayment Interest Shortfall: With respect to any Distribution Date and

any Mortgage Loan (other than a Mortgage Loan relating to an REO Property)   that

was the   subject   of (a) a   Principal   Prepayment   in Full   during   the   related

Prepayment   Period, an amount equal to the excess of one month's interest at the

Net   Mortgage   Rate (or   Modified   Net   Mortgage   Rate in the case of a Modified

Mortgage   Loan) on the Stated   Principal   Balance of such Mortgage Loan over the

amount of interest   (adjusted to the Net Mortgage Rate (or Modified Net Mortgage

Rate in the case of a Modified Mortgage Loan)) paid by the Mortgagor during such

Prepayment   Period   to the date of such   Principal   Prepayment   in Full or (b) a

Curtailment   during the preceding calendar month, an amount equal to one month's

interest at the Net Mortgage   Rate (or Modified Net Mortgage Rate in the case of

a Modified Mortgage Loan) on the amount of such Curtailment.

 

        Prepayment   Period:   With respect to any Distribution Date and Principal

Prepayment in Full, the period   commencing of the 16th day of the month prior to

that   Distribution   Date and   ending   on the 15th day of the   month in which the

Distribution Date occurs.

 

        Primary   Insurance   Policy:   The   policy,   if any,   of primary   mortgage

guaranty insurance related to a Mortgage Loan.

 

        Principal   Prepayment:   Any payment of principal or other   recovery on a

Mortgage Loan,   including a recovery that takes the form of Liquidation Proceeds

or Insurance   Proceeds,   which is received in advance of its   scheduled Due Date

and is not   accompanied   by an   amount   as to   interest   representing   scheduled

interest   on such   payment   due on any   date or dates   in any   month   or   months

subsequent to the month of prepayment.

 

        Principal   Prepayment   in   Full:   Any   Principal   Prepayment   made   by a

Mortgagor of the entire principal balance of a Mortgage Loan.

 

        Purchase Agreement:   The Mortgage Loan Purchase   Agreement,   dated as of

the Closing   Date,   between the Seller and the Company,   as   purchaser,   and all

amendments thereof and supplements thereto.

 

        Purchase   Price:   With   respect to any Mortgage   Loan (or REO   Property)

required to be or   otherwise   purchased   on any date   pursuant to Section   2.01,

2.02,   2.04,   3.13 or 4.07, an amount equal to the sum of (i) 100% of the Stated

Principal   Balance   thereof as of such date,   plus the principal   portion of any

related   unreimbursed   Advances and (ii) unpaid accrued interest at the Mortgage

Rate (or   Modified   Net   Mortgage   Rate   plus the   rate per   annum at which   the

Servicing Fee is calculated in the case of a Modified   Mortgage Loan) (or at the

Net   Mortgage   Rate (or   Modified   Net   Mortgage   Rate in the case of a Modified

 

 

                                       30

<PAGE>

 

Mortgage   Loan) in the case of a purchase   made by the   Servicer)   on the Stated

Principal   Balance   thereof   to the Due Date in the Due   Period   related   to the

Distribution   Date   occurring in the month   following the month of purchase from

the Due Date to which   interest   was last   paid by the   Mortgagor   and   (iii) in

connection with any Mortgage Loan required to be repurchased pursuant to Section

7.03 of the Purchase Agreement, any costs and damages incurred by the Trust Fund

with respect to such Mortgage   Loan in connection   with a breach of Section 7.02

(h) of the Purchase Agreement.

 

        Qualified   Substitute   Mortgage Loan: A Mortgage Loan substituted by the

Seller for a Deleted Mortgage Loan which must, on the date of such substitution,

as confirmed in an Officer's   Certificate   delivered to the Trustee, with a copy

to the Custodian,

 

(i)             have an outstanding   principal   balance,   after   deduction of the

               principal   portion   of the   monthly   payment   due in the month of

               substitution   (or in the case of a substitution   of more than one

               Mortgage   Loan   for   a   Deleted    Mortgage    Loan,   an   aggregate

               outstanding   principal   balance,   after such   deduction),   not in

               excess of the Stated   Principal   Balance of the Deleted   Mortgage

               Loan (the amount of any   shortfall   to be deposited by the Seller

               in the Custodial Account in the month of substitution);

 

(ii)            have a Mortgage   Rate and a Net   Mortgage   Rate no lower than and

               not more than 1% per annum higher than the Mortgage   Rate and Net

               Mortgage Rate,   respectively,   of the Deleted Mortgage Loan as of

               the date of substitution;

 

(iii)           have a Loan-to-Value   Ratio at the time of substitution no higher

               than   that   of   the   Deleted    Mortgage    Loan   at   the   time   of

               substitution;

 

(iv)            have a remaining   term to stated   maturity   not greater than (and

                not more than one year less   than) that of the   Deleted   Mortgage

               Loan;

 

(v)             comply with each   representation   and warranty made by the Seller

               set forth in Section 7.02 of the Purchase Agreement; and

 

(vi)             have a Pool   Strip   Rate   equal to or   greater   than   that of the

               Deleted Mortgage Loan.

 

Notwithstanding   any other provisions   herein, (x) with respect to any Qualified

Substitute   Mortgage Loan   substituted   for a Deleted   Mortgage Loan which was a

Discount Mortgage Loan, such Qualified   Substitute Mortgage Loan shall be deemed

to be a   Discount   Mortgage   Loan and to have a Discount   Fraction   equal to the

Discount   Fraction   of the Deleted   Mortgage   Loan and (y) in the event that the

"Pool   Strip   Rate" of any   Qualified   Substitute   Mortgage   Loan as   calculated

pursuant to the   definition   of "Pool Strip Rate" is greater than the Pool Strip

Rate of the related Deleted Mortgage Loan,

 

        (i) the Pool Strip Rate of such Qualified Substitute Mortgage Loan shall

        be equal to the Pool Strip Rate of the related Deleted Mortgage Loan for

        purposes   of   calculating   the    Pass-Through    Rate   on   the   Class   IO

        Certificates; and

 

        (ii) the   excess of the Pool   Strip   Rate on such   Qualified   Substitute

        Mortgage   Loan as calculated   pursuant to the   definition of "Pool Strip

        Rate" over the Pool   Strip Rate on the   related   Deleted   Mortgage   Loan

        shall be payable to the Class R   Certificates   pursuant to Section   4.02

        hereof.

 

        Rating Agency:   Fitch, Moody's and Standard & Poor's. If any agency or a

successor is no longer in existence,   "Rating Agency" shall be such   statistical

credit rating agency,   or other   comparable   Person,   designated by the Company,

notice of which designation shall be given to the Trustee and the Servicer.

 

                                       31

<PAGE>

 

        Realized Loss:   With respect to each Mortgage Loan (or REO Property):

 

         (a)      as to which a Cash   Liquidation or REO Disposition has occurred,

                an amount (not less than zero) equal to (i) the Stated Principal

                Balance of the Mortgage Loan (or REO Property) as of the date of

                Cash Liquidation or REO Disposition, plus (ii) interest (and REO

                Imputed Interest,   if any) at the Net Mortgage Rate from the Due

                Date   as   to   which   interest   was   last   paid   or   advanced   to

                Certificateholders   up to the Due Date in the Due Period related

                to the   Distribution   Date on which such   Realized   Loss will be