1 EXHIBIT 4.5(b) SECOND AMENDMENT TO THIRD AMENDED AND RESTATED CREDIT AGREEMENT This SECOND AMENDMENT (this "Amendment") is entered into as of January 20, 1998, among IDEX Corporation, a Delaware corporation (the "Company"), the several financial institutions from time to time party to the Credit Agreement (as defined herein) (collectively, the "Banks"; individually, a "Bank"), and Bank of America National Trust and Savings Association, as successor by merger to Bank of America Illinois, as agent for the Banks. BACKGROUND WHEREAS, the Company, the Banks and the Agent have entered into that certain Third Amended and Restated Credit Agreement dated as of July 17, 1996 (as the same may be further amended or modified from time to time, the "Credit Agreement") and the Loan Documents referred to in the Credit Agreement; WHEREAS, the Company, the Banks and the Agent have determined that the Credit Agreement should be amended in certain respects and to make certain other changes agreed to by the parties. NOW, THEREFORE, the parties hereto hereby agree as follows: 1. Definitions. Capitalized terms used but not otherwise defined herein shall have the meanings ascribed to such terms in the Credit Agreement. 2. Certain Amendments to Credit Agreement. The Credit Agreement is hereby amended, effective on the date this Amendment becomes effective in accordance with Section 4 hereof, as follows: 2.1 Section 8.05 of the Credit Agreement is hereby amended by adding the following after subsection (h): "(i) Unsecured Indebtedness of the Company pursuant to its ten year senior unsecured notes due 2008 in an aggregate principal amount not to exceed $150,000,000." 3. Conditions to Effectiveness of this Amendment. This Amendment shall become effective upon the satisfaction of the following conditions: 3.1 Executed Amendment. Receipt by the Agent of duly executed counterparts of this Amendment from the Company and the Banks; and 3.2 Miscellaneous. Receipt by the Agent of such other documents, certificates, instruments or opinions as may reasonably be requested by it. 4. Certain Representations and Warranties by the Company. In order to induce the Banks and the Agent to enter into this Amendment, the Company represents and warrants to the 2 Banks and the Agent that: 4.1 Authority. The Company has the right, power and capacity and has been duly authorized and empowered by all requisite corporate and shareholder action to enter into, execute, deliver and perform this Amendment and the Credit Agreement as amended hereby. 4.2 Validity. This Amendment and the Credit Agreement as amended hereby have each been duly and validly executed and delivered by the Company and constitutes its legal, valid and binding obligations, enforceable against the Company in accordance with its respective terms, except as enforcement thereof may be subject to the effect of any applicable bankruptcy, insolvency, reorganization, moratorium or similar laws affecting creditors' rights generally and general principles of equity (regardless of whether such enforcement is sought in a proceeding in equity or at law or otherwise). 4.3 No Conflicts. The Company's execution, delivery and performance of this Amendment and the Credit Agreement as amended hereby does not and will not violate its Certificates or Articles of Incorporation or Bylaws, any law, rule, regulation, order, writ, judgment, decree or award applicable to the Company or any contractual provision to which the Company is party or to which the Company or any of its Subsidiaries are subject. 4.4 Approvals. No authorization or approval or other action by, and no notice to or filing or registration with, any Governmental Authority or regulatory body (other than those which have been obtained and are in force and effect) is required in connection with the Company's execution, delivery and performance of this Amendment and the Credit Agreement as amended hereby. 4.5 Incorporated Representations and Warranties. All representations and warranties contained in the Loan Documents are true and correct in all material respects with the same effect as though such representations and warranties had been made on and as of the date hereof and the effective date hereof, except as to any representations or warranties which expressly relate to an earlier date, in which event, such representations and warranties are true as of such date. 4.6 No Defaults. No Default or Event of Default exists as of the date hereof or will exist after giving effect to this Amendment. 5. Miscellaneous. The parties hereto hereby further agree as follows: 5.1 Further Assurances. Each of the parties hereto hereby agrees to do such further acts and things and to execute, deliver and acknowledge such additional agreements, powers and instruments as any other party hereto may reasonably require to carry into effect the purposes of this Amendment and the Credit Agreement as amended hereby. 5.2 Counterparts. This Amendment may be executed in one or more counterparts, each of which, when executed and delivered, shall be deemed to be an original and all of which 3 counterparts, taken together, shall constitute but one and the same document with the same force and effect as if the signatures of all of the parties were on a single counterpart, and it shall not be necessary in making proof of this Amendment to produce more than one such counterpart. 5.3 Headings. Headings used in this Amendment are for convenience of reference only and shall not affect the construction of this Amendment. 5.4 Integration. This Amendment and the Loan Documents constitute the entire agreement among the parties hereto with respect to the subject matter hereof and thereof. 5.5 Governing Law. THIS AMENDMENT SHALL BE DEEMED TO BE A CONTRACT MADE UNDER THE LAWS OF THE STATE OF ILLINOIS, AND FOR ALL PURPOSES SHALL BE GOVERNED BY AND CONSTRUED AND ENFORCED IN ACCORDANCE WITH THE INTERNAL LAWS AND DECISIONS OF SAID STATE, WITHOUT REGARD TO PRINCIPLES OF CONFLICTS OF LAWS. 5.6 Binding Effect. This Amendment shall be binding upon and inure to the benefit of and be enforceable by the parties hereto and their respective successors and assigns; provided, however, that the Company may not assign or transfer its rights, interests or obligations hereunder without the prior written consent of the Agent and all of the Banks. Except as expressly set forth to the contrary herein, this Amendment shall not be construed so as to confer any right or benefit upon any Person other than the parties to this Amendment and their respective successors and permitted assigns. 5.7 Amendment; Waiver; Reaffirmation of Loan Documents. The parties hereto agree and acknowledge that nothing contained in this Amendment in any manner or respect limits or terminates any of the provisions of the Credit Agreement or the other Loan Documents other than as expressly set forth herein and further agree and acknowledge that the Credit Agreement and each of the other Loan Documents remain and continue in full force and effect and are hereby ratified and reaffirmed in all respects. No delay on the part of any Bank or the Agent in exercising any of their respective rights, remedies, powers and privileges under the Credit Agreement or any of the other Loan Documents or partial or single exercise thereof, shall constitute a waiver thereof. None of the terms and conditions of this Amendment may be changed, waived, modified or varied in any manner, whatsoever, except in accordance with Section 11.01 of the Credit Agreement. 5.8 Reference to and Effect on the Credit Agreement and the other Loan Documents. Upon the effectiveness hereof, each reference in the Credit Agreement to "this Agreement," "hereunder," "hereof," "herein," or words of like import referring to the Credit Agreement and each reference in the other Loan Documents to the "Credit Agreement," "thereunder," "thereof," or words of like import referring to the Credit Agreement shall mean and be a reference to the Credit Agreement as amended by this Amendment. The Credit Agreement shall be deemed to be amended wherever and as necessary to reflect the foregoing amendments. 4 [signature page follows] 5 IN WITNESS WHEREOF, this Amendment has been duly executed and delivered as of the date first above written. IDEX CORPORATION By:________________________ Title:_____________________ BANK OF AMERICA NATIONAL TRUST AND SAVINGS ASSOCIATION, AS AGENT By:________________________ Title:_____________________ 6 BANK OF AMERICA NATIONAL TRUST AND SAVINGS ASSOCIATION, AS A BANK By:________________________ Title:_____________________ 7 BANK OF SCOTLAND By:________________________ Title:_____________________ 8 NATIONAL CITY BANK By:________________________ Title:_____________________ 9 PNC BANK, NATIONAL ASSOCIATION By:________________________ Title:_____________________ 10 UNION BANK OF CALIFORNIA, N.A., (SUCCESSOR IN INTEREST TO UNION BANK) By:________________________ Title:_____________________ 11 U.S. BANK NATIONAL ASSOCIATION, (SUCCESSOR IN INTEREST TO UNITED STATES NATIONAL BANK OF OREGON) By:________________________ Title:_____________________ 12 THE HARRIS TRUST AND SAVINGS BANK CO. By:________________________ Title:_____________________