the extent such payments in the aggregate for the year do not exceed an amount equal to— (I) the limitation applicable under section 402(g) for the year (or, if lesser, the employee's compensation (as defined in section 415(c)(3)) for the year), reduced by (II) the elective deferrals made by the employee for such year, and (ii) if the employee certifies to the employer making the matching contribution under this paragraph that such payment has been made on such loan. For purposes of this subparagraph, the term qualified higher education expenses means the cost of attendance (as defined in section 472 of the Higher Education Act of 1965, as in effect on the day before the date of the enactment of the Taxpayer Relief Act of 1997) at an eligible educational institution (as defined in section 221(d)(2)). . (c) Matching contributions for qualified student loan payments Subsection (m) of section 401, as amended by this Act, is further amended by redesignating paragraph (14) as paragraph (15), and by inserting after paragraph (13) the following new paragraph: (14) Matching contributions for qualified student loan payments (A) In general For purposes of paragraph (4)(A)(iii), an employer contribution made to a defined contribution plan on account of a qualified student loan payment shall be treated as a matching contribution for purposes of this title if— (i) the plan provides matching contributions on account of elective deferrals at the same rate as contributions on account of qualified student loan payments, (ii) the plan provides matching contributions on account of qualified student loan payments only on behalf of employees otherwise eligible to make elective deferrals, and (iii) under the plan, all employees eligible to receive matching contributions on account of elective deferrals are eligible to receive matching contributions on account of qualified student loan payments. (B) Treatment for purposes of nondiscrimination rules, etc (i) Nondiscrimination rules For purposes of subparagraph (A)(iii), subsection