10-Q 1 ctbi10q0917.htm CTBI SEPTEMBER 30, 2017 FORM 10-Q

UNITED STATES
SECURITIES AND EXCHANGE COMMISSION
WASHINGTON, D.C. 20549
FORM 10-Q

[X] | QUARTERLY REPORT PURSUANT TO SECTION 13 OR 15(d) OF THE SECURITIES EXCHANGE ACT OF 1934
| For the quarterly period ended September 30, 2017
| or
[ ] | TRANSITION REPORT PURSUANT TO SECTION 13 OR 15(d) OF THE SECURITIES EXCHANGE ACT OF 1934
| For the transition period from _____________ to _____________

Commission file number 0-11129
COMMUNITY TRUST BANCORP, INC.
(Exact name of registrant as specified in its charter)

Kentucky | 61-0979818
(State or other jurisdiction of incorporation or organization) | IRS Employer Identification No.
346 North Mayo Trail Pikeville, Kentucky (Address of principal executive offices) | 41501 (Zip code)

(606) 432-1414
(Registrant’s telephone number)
Indicate by check mark whether the registrant (1) has filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that the registrant was required to file such reports) and (2) has been subject to such filing requirements for the past 90 days.

Yes ✓ | No

Indicate by check mark whether the registrant has submitted electronically and posted on its corporate Web site, if any, every Interactive Data File required to be submitted and posted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit and post such files.)

Yes ✓ | No

Indicate by check mark whether the registrant is a large accelerated filer, an accelerated filer, a non-accelerated filer, a smaller reporting company, or an emerging growth company. See definition of “large accelerated filer,” “accelerated filer,” “smaller reporting company,” and “emerging growth company” in Rule 12b-2 of the Exchange Act.

Large accelerated filer ☐ | Accelerated filer ✓ | Non-accelerated filer ☐
|  | (Do not check if a smaller reporting company)
Smaller reporting company ☐ | Emerging growth company ☐ |

If an emerging growth company, indicate by check mark if the registrant has elected not to use the extended transition period for complying with any new or revised ﬁnancial accounting standards provided pursuant to Section 7(a)(2)(B) of the Securities Act. ☐
Indicate by check mark whether the registrant is a shell company (as defined in Rule 12b-2 of the Exchange Act).

Yes | No ✓

Indicate the number of shares outstanding of each of the issuer’s classes of common stock, as of the latest practical date.
Common stock – 17,692,733 shares outstanding at October 31, 2017

CAUTIONARY STATEMENT
REGARDING FORWARD LOOKING STATEMENTS
Certain of the statements contained herein that are not historical facts are forward-looking statements within the meaning of the Private Securities Litigation Reform Act. Community Trust Bancorp, Inc.’s (“CTBI”) actual results may differ materially from those included in the forward-looking statements. Forward-looking statements are typically identified by words or phrases such as “believe,” “expect,” “anticipate,” “intend,” “estimate,” “may increase,” “may fluctuate,” and similar expressions or future or conditional verbs such as “will,” “should,” “would,” and “could.” These forward-looking statements involve risks and uncertainties including, but not limited to, economic conditions, portfolio growth, the credit performance of the portfolios, including bankruptcies, and seasonal factors; changes in general economic conditions including the performance of financial markets, prevailing inflation and interest rates, realized gains from sales of investments, gains from asset sales, and losses on commercial lending activities; results of various investment activities; the effects of competitors’ pricing policies, changes in laws and regulations, competition, and demographic changes on target market populations’ savings and financial planning needs; industry changes in information technology systems on which we are highly dependent; failure of acquisitions to produce revenue enhancements or cost savings at levels or within the time frames originally anticipated or unforeseen integration difficulties; and the resolution of legal proceedings and related matters. In addition, the banking industry in general is subject to various monetary, operational, and fiscal policies and regulations, which include, but are not limited to, those determined by the Federal Reserve Board, the Federal Deposit Insurance Corporation, the Consumer Financial Protection Bureau, and state regulators, whose policies, regulations, and enforcement actions could affect CTBI’s results. These statements are representative only on the date hereof, and CTBI undertakes no obligation to update any forward-looking statements made.
PART I - FINANCIAL INFORMATION
Item 1. Condensed Consolidated Financial Statements
The accompanying information has not been audited by our independent registered public accountants; however, in the opinion of management such information reflects all adjustments necessary for a fair presentation of the results for the interim period. All such adjustments are of a normal and recurring nature.
The accompanying condensed consolidated financial statements are presented in accordance with the requirements of Form 10-Q and consequently do not include all of the disclosures normally required by accounting principles generally accepted in the United States of America or those normally made in the Registrant’s annual report on Form 10-K. Accordingly, the reader of the Form 10-Q should refer to the Registrant’s Form 10-K for the year ended December 31, 2016 for further information in this regard.

Community Trust Bancorp, Inc.
Condensed Consolidated Balance Sheets

(dollars in thousands) |  | (unaudited) September 30 2017 |  |  | December 31 2016 |
Assets: |  |  |  |  |  |
Cash and due from banks |  | $ | 48,738 |  |  | $ | 48,603 |
Interest bearing deposits |  |  | 107,178 |  |  |  | 95,586 |
Federal funds sold |  |  | 10,500 |  |  |  | 527 |
Cash and cash equivalents |  |  | 166,416 |  |  |  | 144,716 |
Certificates of deposit in other banks |  |  | 11,270 |  |  |  | 980 |
Securities available-for-sale at fair value (amortized cost of $604,413 and $608,939, respectively) |  |  | 603,033 |  |  |  | 605,394 |
Securities held-to-maturity at amortized cost (fair value of $858 and $867, respectively) |  |  | 858 |  |  |  | 866 |
Loans held for sale |  |  | 1,605 |  |  |  | 1,244 |
Loans |  |  | 3,113,421 |  |  |  | 2,938,371 |
Allowance for loan and lease losses |  |  | (36,391 | ) |  |  | (35,933 | )
Net loans |  |  | 3,077,030 |  |  |  | 2,902,438 |
Premises and equipment, net |  |  | 46,572 |  |  |  | 47,940 |
Federal Home Loan Bank stock |  |  | 17,927 |  |  |  | 17,927 |
Federal Reserve Bank stock |  |  | 4,887 |  |  |  | 4,887 |
Goodwill |  |  | 65,490 |  |  |  | 65,490 |
Core deposit intangible (net of accumulated amortization of $8,602 and $8,483, respectively) |  |  | 14 |  |  |  | 133 |
Bank owned life insurance |  |  | 64,998 |  |  |  | 63,881 |
Mortgage servicing rights |  |  | 3,283 |  |  |  | 3,433 |
Other real estate owned |  |  | 32,048 |  |  |  | 35,856 |
Other assets |  |  | 40,464 |  |  |  | 36,984 |
Total assets |  | $ | 4,135,895 |  |  | $ | 3,932,169 |
Liabilities and shareholders’ equity: |  |  |  |  |  |  |  |
Deposits: |  |  |  |  |  |  |  |
Noninterest bearing |  | $ | 786,856 |  |  | $ | 767,918 |
Interest bearing |  |  | 2,413,510 |  |  |  | 2,313,390 |
Total deposits |  |  | 3,200,366 |  |  |  | 3,081,308 |
Repurchase agreements |  |  | 260,007 |  |  |  | 251,065 |
Federal funds purchased |  |  | 8,196 |  |  |  | 4,816 |
Advances from Federal Home Loan Bank |  |  | 50,869 |  |  |  | 944 |
Long-term debt |  |  | 59,341 |  |  |  | 61,341 |
Deferred taxes |  |  | 8,716 |  |  |  | 7,836 |
Other liabilities |  |  | 25,471 |  |  |  | 24,244 |
Total liabilities |  |  | 3,612,966 |  |  |  | 3,431,554 |
Shareholders’ equity: |  |  |  |  |  |  |  |
Preferred stock, 300,000 shares authorized and unissued |  |  | - |  |  |  | - |
Common stock, $5 par value, shares authorized 25,000,000; shares outstanding 2017 – 17,677,977; 2016 – 17,628,695 |  |  | 88,390 |  |  |  | 88,144 |
Capital surplus |  |  | 220,875 |  |  |  | 219,697 |
Retained earnings |  |  | 214,561 |  |  |  | 195,078 |
Accumulated other comprehensive loss, net of tax |  |  | (897 | ) |  |  | (2,304 | )
Total shareholders’ equity |  |  | 522,929 |  |  |  | 500,615 |
Total liabilities and shareholders’ equity |  | $ | 4,135,895 |  |  | $ | 3,932,169 |

See notes to condensed consolidated financial statements.

Community Trust Bancorp, Inc.
Condensed Consolidated Statements of Income and Comprehensive Income
(unaudited)

|  | Three Months Ended |  |  | Nine Months Ended |
|  | September 30 |  |  | September 30 |
(in thousands except per share data) |  | 2017 |  |  | 2016 |  |  | 2017 |  |  | 2016 |
Interest income: |  |  |  |  |  |  |  |  |  |  |  |
Interest and fees on loans, including loans held for sale |  | $ | 36,288 |  |  | $ | 33,593 |  |  | $ | 104,643 |  |  | $ | 100,172 |
Interest and dividends on securities |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Taxable |  |  | 2,198 |  |  |  | 2,030 |  |  |  | 6,458 |  |  |  | 6,188 |
Tax exempt |  |  | 741 |  |  |  | 653 |  |  |  | 2,211 |  |  |  | 2,003 |
Interest and dividends on Federal Reserve Bank and Federal Home Loan Bank stock |  |  | 308 |  |  |  | 251 |  |  |  | 867 |  |  |  | 757 |
Other, including interest on federal funds sold |  |  | 309 |  |  |  | 152 |  |  |  | 844 |  |  |  | 460 |
Total interest income |  |  | 39,844 |  |  |  | 36,679 |  |  |  | 115,023 |  |  |  | 109,580 |
Interest expense: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Interest on deposits |  |  | 3,754 |  |  |  | 2,799 |  |  |  | 9,876 |  |  |  | 8,047 |
Interest on repurchase agreements |  |  | 466 |  |  |  | 288 |  |  |  | 1,215 |  |  |  | 836 |
Interest on advances from Federal Home Loan Bank |  |  | 226 |  |  |  | 3 |  |  |  | 394 |  |  |  | 51 |
Interest on long-term debt |  |  | 428 |  |  |  | 362 |  |  |  | 1,238 |  |  |  | 1,036 |
Total interest expense |  |  | 4,874 |  |  |  | 3,452 |  |  |  | 12,723 |  |  |  | 9,970 |
Net interest income |  |  | 34,970 |  |  |  | 33,227 |  |  |  | 102,300 |  |  |  | 99,610 |
Provision for loan losses |  |  | 666 |  |  |  | 2,191 |  |  |  | 4,659 |  |  |  | 5,829 |
Net interest income after provision for loan losses |  |  | 34,304 |  |  |  | 31,036 |  |  |  | 97,641 |  |  |  | 93,781 |
Noninterest income: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Service charges on deposit accounts |  |  | 6,499 |  |  |  | 6,563 |  |  |  | 18,658 |  |  |  | 18,680 |
Gains on sales of loans, net |  |  | 390 |  |  |  | 595 |  |  |  | 897 |  |  |  | 1,357 |
Trust and wealth management income |  |  | 2,534 |  |  |  | 2,440 |  |  |  | 7,769 |  |  |  | 7,111 |
Loan related fees |  |  | 792 |  |  |  | 1,260 |  |  |  | 2,570 |  |  |  | 2,610 |
Bank owned life insurance |  |  | 583 |  |  |  | 560 |  |  |  | 1,633 |  |  |  | 1,628 |
Brokerage revenue |  |  | 297 |  |  |  | 387 |  |  |  | 1,032 |  |  |  | 1,067 |
Securities gains |  |  | 48 |  |  |  | 458 |  |  |  | 58 |  |  |  | 522 |
Other noninterest income |  |  | 1,059 |  |  |  | 923 |  |  |  | 3,475 |  |  |  | 2,951 |
Total noninterest income |  |  | 12,202 |  |  |  | 13,186 |  |  |  | 36,092 |  |  |  | 35,926 |
Noninterest expense: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Officer salaries and employee benefits |  |  | 2,933 |  |  |  | 3,090 |  |  |  | 8,860 |  |  |  | 9,147 |
Other salaries and employee benefits |  |  | 11,146 |  |  |  | 11,126 |  |  |  | 34,187 |  |  |  | 33,524 |
Occupancy, net |  |  | 2,043 |  |  |  | 2,012 |  |  |  | 6,042 |  |  |  | 6,035 |
Equipment |  |  | 741 |  |  |  | 733 |  |  |  | 2,275 |  |  |  | 2,177 |
Data processing |  |  | 1,772 |  |  |  | 1,601 |  |  |  | 5,318 |  |  |  | 4,729 |
Bank franchise tax |  |  | 1,205 |  |  |  | 1,492 |  |  |  | 4,246 |  |  |  | 4,291 |
Legal fees |  |  | 429 |  |  |  | 455 |  |  |  | 1,256 |  |  |  | 1,437 |
Professional fees |  |  | 478 |  |  |  | 473 |  |  |  | 1,525 |  |  |  | 1,395 |
Advertising and marketing |  |  | 705 |  |  |  | 674 |  |  |  | 2,098 |  |  |  | 1,883 |
FDIC insurance |  |  | 316 |  |  |  | 469 |  |  |  | 923 |  |  |  | 1,628 |
Other real estate owned provision and expense |  |  | 1,313 |  |  |  | 873 |  |  |  | 4,056 |  |  |  | 1,892 |
Repossession expense |  |  | 269 |  |  |  | 272 |  |  |  | 697 |  |  |  | 911 |
Amortization of limited partnership investments |  |  | 605 |  |  |  | 546 |  |  |  | 1,814 |  |  |  | 2,078 |
Other noninterest expense |  |  | 2,977 |  |  |  | 2,871 |  |  |  | 8,845 |  |  |  | 8,994 |
Total noninterest expense |  |  | 26,932 |  |  |  | 26,687 |  |  |  | 82,142 |  |  |  | 80,121 |
Income before income taxes |  |  | 19,574 |  |  |  | 17,535 |  |  |  | 51,591 |  |  |  | 49,586 |
Income taxes |  |  | 5,811 |  |  |  | 5,223 |  |  |  | 15,010 |  |  |  | 14,106 |
Net income |  |  | 13,763 |  |  |  | 12,312 |  |  |  | 36,581 |  |  |  | 35,480 |
Other comprehensive income (loss): |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Unrealized holding gains (losses) on securities available-for-sale: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Unrealized holding gains (losses) arising during the period |  |  | (522 | ) |  |  | (2,374 | ) |  |  | 2,223 |  |  |  | 5,750 |
Less: Reclassification adjustments for realized gains included in net income |  |  | 48 |  |  |  | 458 |  |  |  | 58 |  |  |  | 522 |
Tax expense (benefit) |  |  | (199 | ) |  |  | (991 | ) |  |  | 758 |  |  |  | 1,830 |
Other comprehensive income (loss), net of tax |  |  | (371 | ) |  |  | (1,841 | ) |  |  | 1,407 |  |  |  | 3,398 |
Comprehensive income |  | $ | 13,392 |  |  | $ | 10,471 |  |  | $ | 37,988 |  |  | $ | 38,878 |
Basic earnings per share |  | $ | 0.78 |  |  | $ | 0.70 |  |  | $ | 2.08 |  |  | $ | 2.02 |
Diluted earnings per share |  | $ | 0.78 |  |  | $ | 0.70 |  |  | $ | 2.07 |  |  | $ | 2.02 |
Weighted average shares outstanding-basic |  |  | 17,633 |  |  |  | 17,554 |  |  |  | 17,625 |  |  |  | 17,532 |
Weighted average shares outstanding-diluted |  |  | 17,653 |  |  |  | 17,569 |  |  |  | 17,645 |  |  |  | 17,548 |
Dividends declared per share |  | $ | 0.33 |  |  | $ | 0.32 |  |  | $ | 0.97 |  |  | $ | 0.94 |

See notes to condensed consolidated financial statements

Community Trust Bancorp, Inc.
Condensed Consolidated Statements of Cash Flows
(unaudited)

|  | Nine Months Ended |
|  | September 30 |
(in thousands) |  | 2017 |  |  | 2016 |
Cash flows from operating activities: |  |  |  |  |  |
Net income |  | $ | 36,581 |  |  | $ | 35,480 |
Adjustments to reconcile net income to net cash provided by operating activities: |  |  |  |  |  |  |  |
Depreciation and amortization |  |  | 3,019 |  |  |  | 2,878 |
Deferred taxes |  |  | 122 |  |  |  | 519 |
Stock-based compensation |  |  | 447 |  |  |  | 347 |
Excess tax benefits of stock-based compensation |  |  | 0 |  |  |  | (58 | )
Provision for loan losses |  |  | 4,659 |  |  |  | 5,829 |
Write-downs of other real estate owned and other repossessed assets |  |  | 2,871 |  |  |  | 632 |
Gains on sale of mortgage loans held for sale |  |  | (897 | ) |  |  | (1,357 | )
Securities gains |  |  | (58 | ) |  |  | (522 | )
Gain on debt repurchase |  |  | (560 | ) |  |  | 0 |
(Gains)/losses on sale of assets, net |  |  | (2 | ) |  |  | 77 |
Proceeds from sale of mortgage loans held for sale |  |  | 40,130 |  |  |  | 61,339 |
Funding of mortgage loans held for sale |  |  | (39,594 | ) |  |  | (60,885 | )
Amortization of securities premiums and discounts, net |  |  | 2,375 |  |  |  | 1,614 |
Change in cash surrender value of bank owned life insurance |  |  | (1,117 | ) |  |  | (1,151 | )
Mortgage servicing rights: |  |  |  |  |  |  |  |
Fair value adjustments |  |  | 419 |  |  |  | 660 |
New servicing assets created |  |  | (269 | ) |  |  | (388 | )
Changes in: |  |  |  |  |  |  |  |
Other assets |  |  | (3,412 | ) |  |  | (3,902 | )
Other liabilities |  |  | 1,181 |  |  |  | 11,967 |
Net cash provided by operating activities |  |  | 45,895 |  |  |  | 53,079 |
Cash flows from investing activities: |  |  |  |  |  |  |  |
Certificates of deposit in other banks: |  |  |  |  |  |  |  |
Purchase of certificates of deposit |  |  | (11,515 | ) |  |  | 0 |
Maturity of certificates of deposit |  |  | 1,225 |  |  |  | 2,852 |
Securities available-for-sale (AFS): |  |  |  |  |  |  |  |
Purchase of AFS securities |  |  | (146,822 | ) |  |  | (159,603 | )
Proceeds from the sales of AFS securities |  |  | 66,359 |  |  |  | 54,446 |
Proceeds from prepayments and maturities of AFS securities |  |  | 82,672 |  |  |  | 73,027 |
Securities held-to-maturity (HTM): |  |  |  |  |  |  |  |
Proceeds from maturities of HTM securities |  |  | 8 |  |  |  | 480 |
Change in loans, net |  |  | (181,282 | ) |  |  | (65,136 | )
Purchase of premises and equipment |  |  | (1,681 | ) |  |  | (2,411 | )
Proceeds from sale and retirement of premises and equipment |  |  | 25 |  |  |  | 10 |
Proceeds from sale of other real estate and other repossessed assets |  |  | 3,073 |  |  |  | 4,041 |
Net cash used in investing activities |  |  | (187,938 | ) |  |  | (92,294 | )
Cash flows from financing activities: |  |  |  |  |  |  |  |
Change in deposits, net |  |  | 119,058 |  |  |  | 73,203 |
Change in repurchase agreements and federal funds purchased, net |  |  | 12,322 |  |  |  | 14,272 |
Proceeds from Federal Home Loan Bank advances |  |  | 150,000 |  |  |  | 0 |
Payments on advances from Federal Home Loan Bank |  |  | (100,075 | ) |  |  | (100,085 | )
Repurchase of long-term debt |  |  | (1,440 | ) |  |  | 0 |
Issuance of common stock |  |  | 1,017 |  |  |  | 2,262 |
Repurchase of common stock |  |  | 0 |  |  |  | (382 | )
Excess tax benefits of stock-based compensation |  |  | 0 |  |  |  | 58 |
Dividends paid |  |  | (17,139 | ) |  |  | (16,546 | )
Net cash provided by (used in) financing activities |  |  | 163,743 |  |  |  | (27,218 | )
Net increase (decrease) in cash and cash equivalents |  |  | 21,700 |  |  |  | (66,433 | )
Cash and cash equivalents at beginning of period |  |  | 144,716 |  |  |  | 187,611 |
Cash and cash equivalents at end of period |  | $ | 166,416 |  |  | $ | 121,178 |
Supplemental disclosures: |  |  |  |  |  |  |  |
Income taxes paid |  | $ | 16,250 |  |  | $ | 13,991 |
Interest paid |  |  | 11,151 |  |  |  | 8,796 |
Non-cash activities: |  |  |  |  |  |  |  |
Loans to facilitate the sale of other real estate owned and repossessed assets |  |  | 2,250 |  |  |  | 2,624 |
Common stock dividends accrued, paid in subsequent quarter |  |  | 208 |  |  |  | 212 |
Real estate acquired in settlement of loans |  |  | 4,156 |  |  |  | 4,300 |

See notes to condensed consolidated financial statements.

Community Trust Bancorp, Inc.
Notes to Condensed Consolidated Financial Statements (unaudited)
Note 1 - Summary of Significant Accounting Policies
In the opinion of management, the unaudited condensed consolidated financial statements include all adjustments (which consist of normal recurring adjustments) necessary, to present fairly the condensed consolidated financial position as of September 30, 2017, the results of operations for the three and nine months ended September 30, 2017 and 2016, and the cash flows for the nine months ended September 30, 2017 and 2016. In accordance with accounting principles generally accepted in the United States of America for interim financial information, these statements do not include certain information and footnote disclosures required by accounting principles generally accepted in the United States of America for complete annual financial statements. The results of operations for the three and nine months ended September 30, 2017 and the cash flows for the nine months ended September 30, 2017 and 2016 are not necessarily indicative of the results to be expected for the full year. The condensed consolidated balance sheet as of December 31, 2016 has been derived from the audited consolidated financial statements of Community Trust Bancorp, Inc. (“CTBI”) for that period. For further information, refer to the consolidated financial statements and footnotes thereto for the year ended December 31, 2016, included in our annual report on Form 10-K.
Principles of Consolidation – The unaudited condensed consolidated financial statements include the accounts of CTBI and its separate and distinct, wholly owned subsidiaries Community Trust Bank, Inc. (“CTB”) and Community Trust and Investment Company. All significant intercompany transactions have been eliminated in consolidation.
Reclassifications – Certain reclassifications considered to be immaterial have been made in the prior year condensed consolidated financial statements to conform to current year classifications. These reclassifications had no effect on net income.
New Accounting Standards –
Ø Financial Instruments – Overall – In January 2016, the FASB issued ASU No. 2016-01, Financial Instruments – Overall (Subtopic 825-10). The amendments in this Update require all equity investments to be measured at fair value with changes in the fair value recognized through net income (other than those accounted for under equity method of accounting or those that result in consolidation of the investee). The amendments in this Update also require an entity to present separately in other comprehensive income the portion of the total change in the fair value of a liability resulting from a change in the instrument-specific credit risk when the entity has elected to measure the liability at fair value in accordance with the fair value option for financial instruments. In addition, the amendments in this Update eliminate the requirement to disclose the method(s) and significant assumptions used to estimate the fair value that is required to be disclosed for financial instruments measured at amortized cost on the balance sheet for public business entities. Public business entities will be required to use the exit price notion when measuring the fair value of financial instruments for disclosure purposes. This Update is the final version of Proposed ASU 2013-220—Financial Instruments—Overall (Subtopic 825-10) and Proposed ASU 2013-221—Financial Instruments—Overall (Subtopic 825-10). For public business entities, the amendments in this Update are effective for fiscal years beginning after December 15, 2017, including interim periods within those fiscal years. The amendments should be applied by means of a cumulative-effect adjustment to the balance sheet as of the beginning of the year of adoption. The amendments related to equity securities without readily determinable fair values (including disclosure requirements) should be applied prospectively to equity investments that exist as of the date of adoption. Management does not expect a significant impact on CTBI’s accounting for equity investments as a result of this ASU. At this time, we cannot quantify the change in the fair value disclosures since we are currently evaluating the full impact of this ASU and are in the planning stages of developing appropriate procedures and processes to comply with the disclosure requirements of such amendments.
Ø Leases – In February 2016, the FASB issued ASU No. 2016-02, Leases (Topic 842). ASU 2016-02 establishes a right of use model that requires a lessee to record a right of use asset and a lease liability for all leases with terms longer than 12 months. Leases will be classified as either finance or operating, with classification affecting the pattern of expense recognition in the income statement. For lessors, the guidance modifies the classification criteria and the accounting for sales-type and direct financing leases. A lease will be treated as a sale if it transfers all of the risks and rewards, as well as control of the underlying asset, to the lessee. If risks and rewards are conveyed without the transfer of control, the lease is treated as a financing. If the lessor does not convey risks and rewards or control, an operating lease results. The amendments are effective for fiscal years beginning after December 15, 2018, including interim periods within those fiscal years for public business entities. Entities are required to use a modified retrospective approach for leases that exist or are entered into after the beginning of the earliest comparative period in the financial statements, with certain practical expedients available. Early adoption is permitted. CTBI has an implementation team working through the provisions of ASU 2016-02 including reviewing all leases to assess the impact on its accounting and disclosures. CTBI does not anticipate a significant increase in leasing activity between now and the date of adoption. While we expect the impact of this ASU to be significant, we have not finalized our calculation of the estimated amounts as we are currently evaluating certain significant variables within the calculation including the impact of individual renewal options and applicable discount rates for each individual lease.
Ø Investments—Equity Method and Joint Ventures: Simplifying the Transition to the Equity Method of Accounting – In March 2016, the FASB issued ASU No. 2016-07, Investments - Equity Method and Joint Ventures (Topic 323): Simplifying the Transition to the Equity Method of Accounting. The amendments affect all entities that have an investment that becomes qualified for the equity method of accounting as a result of an increase in the level of ownership interest or degree of influence.
The amendments eliminate the requirement that when an investment qualifies for use of the equity method as a result of an increase in the level of ownership interest or degree of influence, an investor must adjust the investment, results of operations, and retained earnings retroactively on a step-by-step basis as if the equity method had been in effect during all previous periods that the investment had been held. The amendments require that the equity method investor add the cost of acquiring the additional interest in the investee to the current basis of the investor’s previously held interest and adopt the equity method of accounting as of the date the investment becomes qualified for equity method accounting. Therefore, upon qualifying for the equity method of accounting, no retroactive adjustment of the investment is required.
The amendments require that an entity that has an available-for-sale equity security that becomes qualified for the equity method of accounting recognize through earnings the unrealized holding gain or loss in accumulated other comprehensive income at the date the investment becomes qualified for use of the equity method. The amendments should be applied prospectively upon their effective date to increases in the level of ownership interest or degree of influence that result in the adoption of the equity method.
The amendments became effective for all entities for fiscal years, and interim periods within those fiscal years, beginning after December 15, 2016 and did not have a material impact on CTBI’s consolidated financial statements.
Ø Compensation—Stock Compensation: Improvements to Employee Share-Based Payment Accounting – In April 2016, the FASB issued Accounting Standards Update (ASU) No. 2016-09, Compensation - Stock Compensation (Topic 718): Improvements to Employee Share-Based Payment Accounting. The amendments are intended to improve the accounting for employee share-based payments and affect all organizations that issue share-based payment awards to their employees.
Several aspects of the accounting for share-based payment award transactions are simplified, including: (a) income tax consequences; (b) classification of awards as either equity or liabilities; and (c) classification on the statement of cash flows.
For public companies, the amendments were effective for annual periods beginning after December 15, 2016, and interim periods within those annual periods. CTBI adopted this ASU effective January 1, 2017, and it did not have a material impact on our consolidated financial statements.
Ø Revenue from Contracts with Customers – In May 2014, the FASB issued ASU No. 2014-09, Revenue from Contracts with Customers. The core principle of ASU 2014-09 is that an entity should recognize revenue to depict the transfer of promised goods or services to customers in an amount that reflects the consideration to which the entity expects to be entitled in exchange for those goods or services. The guidance also specifies the accounting for some costs to obtain or fulfill a contract with a customer, as well as enhanced disclosure requirements. In August 2015, the FASB issued ASU 2015-14 which deferred the effective date of ASU 2014-09 to fiscal years, and interim reporting periods within those fiscal years, beginning after December 15, 2017. In March 2016, the FASB issued ASU 2016-08 which clarified the revenue recognition implementation guidance on principal versus agent considerations and is effective during the same period as ASU 2014-09. In April 2016, the FASB issued ASU 2016-10 which clarified the revenue recognition guidance regarding the identification of performance obligations and the licensing implementation and is effective during the same period as ASU 2014-09. In May 2016, the FASB issued ASU 2016-12 which narrowly amended the revenue recognition guidance regarding collectability, noncash consideration, presentation of sales tax, and transition. ASU 2016-12 is effective during the same period as ASU 2014-09. Management is currently evaluating the effects of these ASUs on its financial statements and disclosures. Initial evaluations indicate that there will be no material change to the timing or amounts of income recognized, as we have determined the majority of the revenues earned by CTBI are not within the scope of ASU 2014-09.
Ø Accounting for Credit Losses – In June 2016, the FASB issued ASU No. 2016-13, Financial Instruments—Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments. The provisions of ASU 2016-13 were issued to provide financial statement users with more decision-useful information about the expected credit losses on financial instruments that are not accounted for at fair value through net income, including loans held for investment, held-to-maturity debt securities, trade and other receivables, net investment in leases and other commitments to extend credit held by a reporting entity at each reporting date. This ASU requires that financial assets measured at amortized cost be presented at the net amount expected to be collected, through an allowance for credit losses that is deducted from the amortized cost basis. The amendments in ASU 2016-13 eliminate the probable incurred loss recognition in current GAAP and reflect an entity’s current estimate of all expected credit losses. The measurement of expected credit losses is based upon historical experience, current conditions, and reasonable and supportable forecasts that affect the collectability of the financial assets.
For purchased financial assets with a more-than-insignificant amount of credit deterioration since origination (“PCD assets”) that are measured at amortized cost, the initial allowance for credit losses is added to the purchase price rather than being reported as a credit loss expense. Subsequent changes in the allowance for credit losses on PCD assets are recognized through the statement of income as a credit loss expense.
Credit losses relating to available-for-sale debt securities will be recorded through an allowance for credit losses rather than as a direct write-down to the security.
ASU 2016-13 is effective for fiscal years, and interim periods within those fiscal years, beginning after December 15, 2019. Early adoption is permitted for fiscal years, and interim periods within those fiscal years, beginning after December 15, 2018. CTBI has an implementation team working through the provisions of ASU 2016-13 including assessing the impact on its accounting and disclosures.
Ø Statement of Cash Flows – In August 2016, the FASB issued ASU No. 2016-15, Statement of Cash Flows (Topic 230): Classification of Certain Cash Receipts and Cash Payments. Stakeholders indicated that there is diversity in practice in how certain cash receipts and cash payments are presented and classified in the statement of cash flows under Topic 230, Statement of Cash Flows, and other Topics. This ASU addresses the following eight specific cash flow issues: Debt prepayment or debt extinguishment costs; settlement of zero-coupon debt instruments or other debt instruments with coupon interest rates that are insignificant in relation to the effective interest rate of the borrowing; contingent consideration payments made after a business combination; proceeds from the settlement of insurance claims; proceeds from the settlement of corporate-owned life insurance policies (COLIs) (including bank-owned life insurance policies (BOLIs)); distributions received from equity method investees; beneficial interests in securitization transactions; and separately identifiable cash flows and application of the predominance principle. The amendments in this Update apply to all entities that are required to present a statement of cash flows under Topic 230. This Update is the final version of Proposed Accounting Standards Update EITF-15F—Statement of Cash Flows—Classification of Certain Cash Receipts and Cash Payments (Topic 230), which has been deleted. The amendments in this Update are effective for public business entities for fiscal years beginning after December 15, 2017, and interim periods within those fiscal years. The amendments in this Update should be applied using a retrospective transition method to each period presented. If it is impracticable to apply the amendments retrospectively for some of the issues, the amendments for those issues would be applied prospectively as of the earliest date practicable. Management intends to adopt this ASU effective January 1, 2018, and we do not expect a material impact on CTBI’s consolidated financial statements.
Ø Simplifying the Test for Goodwill Impairment – In January 2017, the FASB issued ASU No. 2017-04, Intangibles – Goodwill and Other (Topic 350) – Simplifying the Test for Goodwill Impairment. These amendments eliminate Step 2 from the goodwill impairment test. The amendments also eliminate the requirements from any reporting unit with a zero or negative carrying amount to perform a qualitative assessment and, if it fails that qualitative test, to perform Step 2 of the goodwill impairment test. An entity still has the option to perform the qualitative assessment for a reporting unit to determine if the quantitative impairment test is necessary. The guidance is effective for fiscal years beginning after December 15, 2019, and interim periods with those fiscal years. ASU 2017-04 should be implemented on a prospective basis. Management does not expect ASU 2017-04 to have an impact on CTBI’s consolidated financial statements.
Ø Receivables – Nonrefundable Fees and Other Costs: Premium Amortization on Purchased Callable Debt Securities – In April 2017, the FASB issued ASU No. 2017-08, Receivables—Nonrefundable Fees and Other Costs (Subtopic 310-20), Premium Amortization on Purchased Callable Debt Securities. The ASU shortens the amortization period for certain callable debt securities held at a premium to the earliest call date. However, the amendments do not require an accounting change for securities held at a discount; the discount continues to be amortized to maturity. The amendments are effective for public business entities for fiscal periods beginning after December 15, 2018, including interim periods within those fiscal periods. Entities are required to apply the amendments on a modified retrospective basis through a cumulative-effect adjustment directly to retained earnings as of the beginning of the period of adoption. We plan to early adopt this ASU effective January 1, 2018. We have reviewed the anticipated effects of this ASU and determined that we expect a $150 thousand reduction in retained earnings and a quarterly increase in amortization expense between $24 thousand and $30 thousand.
Critical Accounting Policies and Estimates
The preparation of consolidated financial statements in conformity with accounting principles generally accepted in the United States of America requires the appropriate application of certain accounting policies, many of which require us to make estimates and assumptions about future events and their impact on amounts reported in our consolidated financial statements and related notes. Since future events and their impact cannot be determined with certainty, the actual results will inevitably differ from our estimates. Such differences could be material to the consolidated financial statements.
We believe the application of accounting policies and the estimates required therein are reasonable. These accounting policies and estimates are constantly reevaluated, and adjustments are made when facts and circumstances dictate a change. Historically, we have found our application of accounting policies to be appropriate, and actual results have not differed materially from those determined using necessary estimates.
We have identified the following critical accounting policies:
Investments – Management determines the classification of securities at purchase. We classify securities into held-to-maturity, trading, or available-for-sale categories. Held-to-maturity securities are those which we have the positive intent and ability to hold to maturity and are reported at amortized cost. In accordance with Financial Accounting Standards Board (FASB) Accounting Standards Codification (ASC) 320, Investment Securities, investments in debt securities that are not classified as held-to-maturity and equity securities that have readily determinable fair values shall be classified in one of the following categories and measured at fair value in the statement of financial position:
a. Trading securities. Securities that are bought and held principally for the purpose of selling them in the near term (thus held for only a short period of time) shall be classified as trading securities. Trading generally reflects active and frequent buying and selling, and trading securities are generally used with the objective of generating profits on short-term differences in price.
b. Available-for-sale securities. Investments not classified as trading securities (nor as held-to-maturity securities) shall be classified as available-for-sale securities.
We do not have any securities that are classified as trading securities. Available-for-sale securities are reported at fair value, with unrealized gains and losses included as a separate component of shareholders’ equity, net of tax. If declines in fair value are other than temporary, the carrying value of the securities is written down to fair value as a realized loss with a charge to income for the portion attributable to credit losses and a charge to other comprehensive income for the portion that is not credit related.
Gains or losses on disposition of securities are computed by specific identification for all securities except for shares in mutual funds, which are computed by average cost. Interest and dividend income, adjusted by amortization of purchase premium or discount, is included in earnings.
When the fair value of a security is below its amortized cost, and depending on the length of time the condition exists and the extent the fair market value is below amortized cost, additional analysis is performed to determine whether an other than temporary impairment condition exists. Available-for-sale and held-to-maturity securities are analyzed quarterly for possible other than temporary impairment. The analysis considers (i) whether we have the intent to sell our securities prior to recovery and/or maturity and (ii) whether it is more likely than not that we will not have to sell our securities prior to recovery and/or maturity. Often, the information available to conduct these assessments is limited and rapidly changing, making estimates of fair value subject to judgment. If actual information or conditions are different than estimated, the extent of the impairment of the security may be different than previously estimated, which could have a material effect on the CTBI’s results of operations and financial condition.
Loans – Loans with the ability and the intent to be held until maturity and/or payoff are reported at the carrying value of unpaid principal reduced by unearned interest, an allowance for loan and lease losses, and unamortized deferred fees or costs. Income is recorded on the level yield basis. Interest accrual is discontinued when management believes, after considering economic and business conditions, collateral value, and collection efforts, that the borrower’s financial condition is such that collection of interest is doubtful. Any loan greater than 90 days past due must be well secured and in the process of collection to continue accruing interest. Cash payments received on nonaccrual loans generally are applied against principal, and interest income is only recorded once principal recovery is reasonably assured. Loans are not reclassified as accruing until principal and interest payments remain current for a period of time, generally six months, and future payments appear reasonably certain. Included in certain loan categories of impaired loans are troubled debt restructurings that were classified as impaired. A restructuring of a debt constitutes a troubled debt restructuring if the creditor for economic or legal reasons related to the debtor’s financial difficulties grants a concession to the debtor that it would not otherwise consider.
Loan origination and commitment fees and certain direct loan origination costs are deferred and the net amount amortized over the estimated life of the related loans, leases, or commitments as a yield adjustment.
Allowance for Loan and Lease Losses – We maintain an allowance for loan and lease losses (“ALLL”) at a level that is appropriate to cover estimated credit losses on individually evaluated loans determined to be impaired, as well as estimated credit losses inherent in the remainder of the loan and lease portfolio. Credit losses are charged and recoveries are credited to the ALLL.
We utilize an internal risk grading system for commercial credits. Those larger commercial credits that exhibit probable or observed credit weaknesses are subject to individual review. The borrower’s cash flow, adequacy of collateral coverage, and other options available to CTBI, including legal remedies, are evaluated. The review of individual loans includes those loans that are impaired as defined by ASC 310-10-35, Impairment of a Loan. We evaluate the collectability of both principal and interest when assessing the need for loss provision. Historical loss rates are analyzed and applied to other commercial loans not subject to specific allocations. The ALLL allocation for this pool of commercial loans is established based on the historical average, maximum, minimum, and median loss ratios.
A loan is considered impaired when, based on current information and events, it is probable that CTBI will be unable to collect the scheduled payments of principal or interest when due according to the contractual terms of the loan agreement. Factors considered by management in determining impairment include payment status, collateral value, and the probability of collecting scheduled principal and interest payments when due. Loans that experience insignificant payment delays and payment shortfalls generally are not classified as impaired. Management determines the significance of payment delays and payment shortfalls on a case-by-case basis, taking into consideration all of the circumstances surrounding the loan and the borrower, including the length of the delay, the reasons for the delay, the borrower’s prior payment record, and the amount of the shortfall in relation to the principal and interest owed. Impairment is measured on a loan-by-loan basis for commercial and construction loans by either the present value of expected future cash flows discounted at the loan’s effective interest rate, the loan’s obtainable market price, or the fair value of the collateral if the loan is collateral dependent.
Homogenous loans, such as consumer installment, residential mortgages, and home equity lines are not individually risk graded. The associated ALLL for these loans is measured under ASC 450, Contingencies.
When any secured commercial loan is considered uncollectable, whether past due or not, a current assessment of the value of the underlying collateral is made. If the balance of the loan exceeds the fair value of the collateral, the loan is placed on nonaccrual and the loan is charged down to the value of the collateral less estimated cost to sell or a specific reserve equal to the difference between book value of the loan and the fair value assigned to the collateral is created until such time as the loan is foreclosed. When the foreclosed collateral has been legally assigned to CTBI, the estimated fair value of the collateral less costs to sell is then transferred to other real estate owned or other repossessed assets, and a charge-off is taken for any remaining balance. When any unsecured commercial loan is considered uncollectable the loan is charged off no later than at 90 days past due.
All closed-end consumer loans (excluding conventional 1-4 family residential loans and installment and revolving loans secured by real estate) are charged off no later than 120 days (5 monthly payments) delinquent. If a loan is considered uncollectable, it is charged off earlier than 120 days delinquent. For conventional 1-4 family residential loans and installment and revolving loans secured by real estate, when a loan is 90 days past due, a current assessment of the value of the real estate is made. If the balance of the loan exceeds the fair value of the property, the loan is placed on nonaccrual. Foreclosure proceedings are normally initiated after 120 days. When the foreclosed property has been legally assigned to CTBI, the fair value less estimated costs to sell is transferred to other real estate owned and the remaining balance is taken as a charge-off.
Historical loss rates for loans are adjusted for significant factors that, in management’s judgment, reflect the impact of any current conditions on loss recognition. We use twelve rolling quarters for our historical loss rate analysis. Factors that we consider include delinquency trends, current economic conditions and trends, strength of supervision and administration of the loan portfolio, levels of underperforming loans, level of recoveries to prior year’s charge-offs, trends in loan losses, industry concentrations and their relative strengths, amount of unsecured loans, and underwriting exceptions. Management continually reevaluates the other subjective factors included in its ALLL analysis.
Other Real Estate Owned – When foreclosed properties are acquired, appraisals are obtained and the properties are booked at the current fair market value less expected sales costs. Additionally, periodic updated appraisals are obtained on unsold foreclosed properties. When an updated appraisal reflects a fair market value below the current book value, a charge is booked to current earnings to reduce the property to its new fair market value less expected sales costs. Our policy for determining the frequency of periodic reviews is based upon consideration of the specific properties and the known or perceived market fluctuations in a particular market and is typically between 12 and 18 months but generally not more than 24 months. All revenues and expenses related to the carrying of other real estate owned are recognized through the income statement.
Income Taxes – Income tax expense is based on the taxes due on the consolidated tax return plus deferred taxes based on the expected future tax benefits and consequences of temporary differences between carrying amounts and tax bases of assets and liabilities, using enacted tax rates. Any interest and penalties incurred in connection with income taxes are recorded as a component of income tax expense in the consolidated financial statements. During the nine months ended September 30, 2017 and 2016, CTBI has not recognized a significant amount of interest expense or penalties in connection with income taxes.
Note 2 – Stock-Based Compensation
CTBI’s compensation expense related to stock option grants was $14 thousand and $15 thousand, respectively, for the three months ended September 30, 2017 and 2016, and $42 thousand for both the nine months ended September 30, 2017 and 2016. Restricted stock expense for the three months ended September 30, 2017 and 2016 was $131 thousand and $97 thousand, respectively, including $13 thousand and $9 thousand in dividends paid for each period. Restricted stock expense for the nine months ended September 30, 2017 and 2016 was $405 thousand and $305 thousand, respectively, including $40 thousand and $28 thousand in dividends paid for each period. As of September 30, 2017, there was a total of $0.1 million of unrecognized compensation expense related to unvested stock option awards that will be recognized as expense as the awards vest over a weighted average period of 2.6 years and a total of $1.3 million of unrecognized compensation expense related to restricted stock grants that will be recognized as expense as the awards vest over a weighted average period of 3.1 years.
There were no shares of restricted stock granted during three months ended September 30, 2017 and 2016. There were 23,668 and 18,069 shares of restricted stock granted during the nine months ended September 30, 2017 and 2016, respectively. The restricted stock was issued pursuant to the terms of CTBI’s 2015 Stock Ownership Incentive Plan. The restrictions on the restricted stock will lapse ratably over four years, except for a 5,000 management retention restricted stock award granted in 2017 which will cliff vest at the end of five years. However, in the event of certain participant employee termination events occurring within 24 months of a change in control of CTBI or the death of the participant, the restrictions will lapse, and in the event of the participant’s disability, the restrictions will lapse on a pro rata basis. The Compensation Committee will have discretion to review and revise restrictions applicable to a participant’s restricted stock in the event of the participant’s retirement.
There were no stock options granted in the first nine months of 2017. There were 10,000 stock options granted during the nine months ended September 30, 2016. The fair value of stock options granted during the nine months ended September 30, 2016 were established at the date of grant using a Black-Scholes option pricing model with the weighted average assumptions as follows:

|  | Nine Months Ended September 30, 2016 |
Expected dividend yield |  |  | 3.70 | %
Risk-free interest rate |  |  | 1.45 | %
Expected volatility |  |  | 34.34 | %
Expected term (in years) |  |  | 7.5 |
Weighted average fair value of options |  | $ | 6.82 |

Note 3 – Securities
Securities are classified into held-to-maturity and available-for-sale categories. Held-to-maturity (HTM) securities are those that CTBI has the positive intent and ability to hold to maturity and are reported at amortized cost. Available-for-sale (AFS) securities are those that CTBI may decide to sell if needed for liquidity, asset-liability management or other reasons. Available-for-sale securities are reported at fair value, with unrealized gains or losses included as a separate component of equity, net of tax.
The amortized cost and fair value of securities at September 30, 2017 are summarized as follows:
Available-for-Sale

(in thousands) |  | Amortized Cost |  |  | Gross Unrealized Gains |  |  | Gross Unrealized Losses |  |  | Fair Value |
U.S. Treasury and government agencies |  | $ | 218,107 |  |  | $ | 239 |  |  | $ | (488 | ) |  | $ | 217,858 |
State and political subdivisions |  |  | 134,840 |  |  |  | 2,670 |  |  |  | (853 | ) |  |  | 136,657 |
U.S. government sponsored agency mortgage-backed securities |  |  | 226,466 |  |  |  | 591 |  |  |  | (3,059 | ) |  |  | 223,998 |
Total debt securities |  |  | 579,413 |  |  |  | 3,500 |  |  |  | (4,400 | ) |  |  | 578,513 |
CRA investment funds |  |  | 25,000 |  |  |  | 93 |  |  |  | (573 | ) |  |  | 24,520 |
Total available-for-sale securities |  | $ | 604,413 |  |  | $ | 3,593 |  |  | $ | (4,973 | ) |  | $ | 603,033 |

Held-to-Maturity

(in thousands) |  | Amortized Cost |  |  | Gross Unrealized Gains |  |  | Gross Unrealized Losses |  |  | Fair Value |
State and political subdivisions |  | $ | 858 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 858 |
Total held-to-maturity securities |  | $ | 858 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 858 |

The amortized cost and fair value of securities at December 31, 2016 are summarized as follows:
Available-for-Sale

(in thousands) |  | Amortized Cost |  |  | Gross Unrealized Gains |  |  | Gross Unrealized Losses |  |  | Fair Value |
U.S. Treasury and government agencies |  | $ | 223,014 |  |  | $ | 193 |  |  | $ | (743 | ) |  | $ | 222,464 |
State and political subdivisions |  |  | 133,351 |  |  |  | 1,957 |  |  |  | (1,792 | ) |  |  | 133,516 |
U.S. government sponsored agency mortgage-backed securities |  |  | 227,574 |  |  |  | 1,008 |  |  |  | (3,526 | ) |  |  | 225,056 |
Total debt securities |  |  | 583,939 |  |  |  | 3,158 |  |  |  | (6,061 | ) |  |  | 581,036 |
CRA investment funds |  |  | 25,000 |  |  |  | 76 |  |  |  | (718 | ) |  |  | 24,358 |
Total available-for-sale securities |  | $ | 608,939 |  |  | $ | 3,234 |  |  | $ | (6,779 | ) |  | $ | 605,394 |

Held-to-Maturity

(in thousands) |  | Amortized Cost |  |  | Gross Unrealized Gains |  |  | Gross Unrealized Losses |  |  | Fair Value |
State and political subdivisions |  | $ | 866 |  |  | $ | 1 |  |  | $ | 0 |  |  | $ | 867 |
Total held-to-maturity securities |  | $ | 866 |  |  | $ | 1 |  |  | $ | 0 |  |  | $ | 867 |

The amortized cost and fair value of securities at September 30, 2017 by contractual maturity are shown below. Expected maturities will differ from contractual maturities because issuers may have the right to call or prepay obligations with or without call or prepayment penalties.

|  | Available-for-Sale |  |  | Held-to-Maturity |
(in thousands) |  | Amortized Cost |  |  | Fair Value |  |  | Amortized Cost |  |  | Fair Value |
Due in one year or less |  | $ | 58,967 |  |  | $ | 58,968 |  |  | $ | 0 |  |  | $ | 0 |
Due after one through five years |  |  | 128,058 |  |  |  | 128,883 |  |  |  | 858 |  |  |  | 858 |
Due after five through ten years |  |  | 40,962 |  |  |  | 41,804 |  |  |  | 0 |  |  |  | 0 |
Due after ten years |  |  | 124,960 |  |  |  | 124,860 |  |  |  | 0 |  |  |  | 0 |
U.S. government sponsored agency mortgage-backed securities |  |  | 226,466 |  |  |  | 223,998 |  |  |  | 0 |  |  |  | 0 |
Total debt securities |  |  | 579,413 |  |  |  | 578,513 |  |  |  | 858 |  |  |  | 858 |
CRA investment funds |  |  | 25,000 |  |  |  | 24,520 |  |  |  | 0 |  |  |  | 0 |
Total securities |  | $ | 604,413 |  |  | $ | 603,033 |  |  | $ | 858 |  |  | $ | 858 |

During the three months ended September 30, 2017, there was a net gain of $48 thousand on sales of AFS securities, consisting of a pre-tax gain of $150 thousand and a pre-tax loss of $102 thousand. During the three months ended September 30, 2016, there was a net gain of $458 thousand on sales and calls of AFS securities, consisting of a pre-tax gain of $460 thousand and a pre-tax loss of $2 thousand.
During the nine months ended September 30, 2017, there was a combined gain of $58 thousand on sales and calls of AFS securities, consisting of a pre-tax gain of $179 thousand and a pre-tax loss of $121 thousand. During the nine months ended September 30, 2016, there was a combined gain of $522 thousand on sales and calls of AFS securities, consisting of a pre-tax gain of $529 thousand and a pre-tax loss of $7 thousand.
The amortized cost of securities pledged as collateral, to secure public deposits and for other purposes, was $222.0 million at September 30, 2017 and $221.2 million at December 31, 2016.
The amortized cost of securities sold under agreements to repurchase amounted to $296.4 million at September 30, 2017 and $303.5 million at December 31, 2016.
CTBI evaluates its investment portfolio on a quarterly basis for impairment. The analysis performed as of September 30, 2017 indicates that all impairment is considered temporary, market and interest rate driven, and not credit-related. The percentage of total investments with unrealized losses as of September 30, 2017 was 66.5% compared to 65.6% as of December 31, 2016. The following tables provide the amortized cost, gross unrealized losses, and fair market value, aggregated by investment category and length of time the individual securities have been in a continuous unrealized loss position as of September 30, 2017 that are not deemed to be other-than-temporarily impaired. There were no held-to-maturity securities that were deemed to be impaired as of September 30, 2017.
Available-for-Sale

(in thousands) |  | Amortized Cost |  |  | Gross Unrealized Losses |  |  | Fair Value |
Less Than 12 Months |  |  |  |  |  |  |  |  |
U.S. Treasury and government agencies |  | $ | 143,007 |  |  | $ | (471 | ) |  | $ | 142,536 |
State and political subdivisions |  |  | 20,141 |  |  |  | (236 | ) |  |  | 19,905 |
U.S. government sponsored agency mortgage-backed securities |  |  | 71,913 |  |  |  | (336 | ) |  |  | 71,577 |
Total debt securities |  |  | 235,061 |  |  |  | (1,043 | ) |  |  | 234,018 |
CRA investment funds |  |  | 7,500 |  |  |  | (56 | ) |  |  | 7,444 |
Total <12 months temporarily impaired AFS securities |  |  | 242,561 |  |  |  | (1,099 | ) |  |  | 241,462 |
12 Months or More |  |  |  |  |  |  |  |  |  |  |  |
U.S. Treasury and government agencies |  |  | 21,559 |  |  |  | (17 | ) |  |  | 21,542 |
State and political subdivisions |  |  | 13,832 |  |  |  | (617 | ) |  |  | 13,215 |
U.S. government sponsored agency mortgage-backed securities |  |  | 113,712 |  |  |  | (2,723 | ) |  |  | 110,989 |
Total debt securities |  |  | 149,103 |  |  |  | (3,357 | ) |  |  | 145,746 |
CRA investment funds |  |  | 15,000 |  |  |  | (517 | ) |  |  | 14,483 |
Total ≥12 months temporarily impaired AFS securities |  |  | 164,103 |  |  |  | (3,874 | ) |  |  | 160,229 |
Total |  |  |  |  |  |  |  |  |  |  |  |
U.S. Treasury and government agencies |  |  | 164,566 |  |  |  | (488 | ) |  |  | 164,078 |
State and political subdivisions |  |  | 33,973 |  |  |  | (853 | ) |  |  | 33,120 |
U.S. government sponsored agency mortgage-backed securities |  |  | 185,625 |  |  |  | (3,059 | ) |  |  | 182,566 |
Total debt securities |  |  | 384,164 |  |  |  | (4,400 | ) |  |  | 379,764 |
CRA investment funds |  |  | 22,500 |  |  |  | (573 | ) |  |  | 21,927 |
Total temporarily impaired AFS securities |  | $ | 406,664 |  |  | $ | (4,973 | ) |  | $ | 401,691 |

U.S. Treasury and Government Agencies
The unrealized losses in U.S. Treasury and government agencies were caused by interest rate increases. The contractual terms of those investments do not permit the issuer to settle the securities at a price less than par which will equal amortized cost at maturity. CTBI does not consider those investments to be other-than-temporarily impaired at September 30, 2017, because CTBI does not intend to sell the investments and it is not more likely than not that we will be required to sell the investments before recovery of their amortized cost, which may be maturity.
State and Political Subdivisions
The unrealized losses in securities of state and political subdivisions were caused by interest rate increases. The contractual terms of those investments do not permit the issuer to settle the securities at a price less than par which will equal amortized cost at maturity. CTBI does not consider those investments to be other-than-temporarily impaired at September 30, 2017, because CTBI does not intend to sell the investments before recovery of their amortized cost and it is not more likely than not that we will be required to sell the investments before recovery of their amortized cost, which may be maturity.
U.S. Government Sponsored Agency Mortgage-Backed Securities
The unrealized losses in U.S. government sponsored agency mortgage-backed securities were caused by interest rate increases. CTBI expects to recover the amortized cost basis over the term of the securities. CTBI does not consider those investments to be other-than-temporarily impaired at September 30, 2017, because (i) the decline in fair market value is attributable to changes in interest rates and not credit quality, (ii) CTBI does not intend to sell the investments, and (iii) it is not more likely than not we will be required to sell the investments before recovery of their amortized cost, which may be maturity.
CRA Investment Funds
CTBI’s CRA investment funds consist of investments in fixed income mutual funds ($24.5 million of the total fair value and $480 thousand of the total unrealized losses in common stock investments). The severity of the impairment (fair value is approximately 2.3% less than cost) and the duration of the impairment correlates with the decline in long-term interest rates in 2017. CTBI evaluated the near-term prospects of these funds in relation to the severity and duration of the impairment. Based on that evaluation, CTBI does not consider those investments to be other-than-temporarily impaired at September 30, 2017.
The analysis performed as of December 31, 2016 indicated that all impairment was considered temporary, market and interest rate driven, and not credit-related. The following tables provide the amortized cost, gross unrealized losses, and fair market value, aggregated by investment category and length of time the individual securities have been in a continuous unrealized loss position as of December 31, 2016 that are not deemed to be other-than-temporarily impaired. There were no held-to-maturity securities that were deemed to be impaired as of December 31, 2016.
Available-for-Sale

(in thousands) |  | Amortized Cost |  |  | Gross Unrealized Losses |  |  | Fair Value |
Less Than 12 Months |  |  |  |  |  |  |  |  |
U.S. Treasury and government agencies |  | $ | 158,732 |  |  | $ | (716 | ) |  | $ | 158,016 |
State and political subdivisions |  |  | 53,491 |  |  |  | (1,780 | ) |  |  | 51,711 |
U.S. government sponsored agency mortgage-backed securities |  |  | 135,939 |  |  |  | (2,646 | ) |  |  | 133,293 |
Total debt securities |  |  | 348,162 |  |  |  | (5,142 | ) |  |  | 343,020 |
CRA investment funds |  |  | 17,500 |  |  |  | (444 | ) |  |  | 17,056 |
Total <12 months temporarily impaired AFS securities |  |  | 365,662 |  |  |  | (5,586 | ) |  |  | 360,076 |
12 Months or More |  |  |  |  |  |  |  |  |  |  |  |
U.S. Treasury and government agencies |  |  | 1,880 |  |  |  | (27 | ) |  |  | 1,853 |
State and political subdivisions |  |  | 751 |  |  |  | (12 | ) |  |  | 739 |
U.S. government sponsored agency mortgage-backed securities |  |  | 31,132 |  |  |  | (880 | ) |  |  | 30,252 |
Total debt securities |  |  | 33,763 |  |  |  | (919 | ) |  |  | 32,844 |
CRA investment funds |  |  | 5,000 |  |  |  | (274 | ) |  |  | 4,726 |
Total ≥12 months temporarily impaired AFS securities |  |  | 38,763 |  |  |  | (1,193 | ) |  |  | 37,570 |
Total |  |  |  |  |  |  |  |  |  |  |  |
U.S. Treasury and government agencies |  |  | 160,612 |  |  |  | (743 | ) |  |  | 159,869 |
State and political subdivisions |  |  | 54,242 |  |  |  | (1,792 | ) |  |  | 52,450 |
U.S. government sponsored agency mortgage-backed securities |  |  | 167,071 |  |  |  | (3,526 | ) |  |  | 163,545 |
Total debt securities |  |  | 381,925 |  |  |  | (6,061 | ) |  |  | 375,864 |
CRA investment funds |  |  | 22,500 |  |  |  | (718 | ) |  |  | 21,782 |
Total temporarily impaired AFS securities |  | $ | 404,425 |  |  | $ | (6,779 | ) |  | $ | 397,646 |

Note 4 – Loans
Major classifications of loans, net of unearned income, deferred loan origination costs, and net premiums on acquired loans, are summarized as follows:

(in thousands) |  | September 30 2017 |  |  | December 31 2016 |
Commercial construction |  | $ | 74,282 |  |  | $ | 66,998 |
Commercial secured by real estate |  |  | 1,197,604 |  |  |  | 1,085,428 |
Equipment lease financing |  |  | 3,290 |  |  |  | 5,512 |
Commercial other |  |  | 339,337 |  |  |  | 350,159 |
Real estate construction |  |  | 64,441 |  |  |  | 57,966 |
Real estate mortgage |  |  | 712,237 |  |  |  | 702,969 |
Home equity |  |  | 96,755 |  |  |  | 91,511 |
Consumer direct |  |  | 137,657 |  |  |  | 133,093 |
Consumer indirect |  |  | 487,818 |  |  |  | 444,735 |
Total loans |  | $ | 3,113,421 |  |  | $ | 2,938,371 |

CTBI has segregated and evaluates its loan portfolio through nine portfolio segments. CTBI serves customers in small and mid-sized communities in eastern, northeastern, central, and south central Kentucky, southern West Virginia, and northeastern Tennessee. Therefore, CTBI’s exposure to credit risk is significantly affected by changes in these communities.
Commercial construction loans are for the purpose of erecting or rehabilitating buildings or other structures for commercial purposes, including any infrastructure necessary for development. Included in this category are improved property, land development, and tract development loans. The terms of these loans are generally short-term with permanent financing upon completion.
Commercial real estate loans include loans secured by nonfarm, nonresidential properties, 1-4 family/multi-family properties, farmland, and other commercial real estate. These loans are originated based on the borrower’s ability to service the debt and secondarily based on the fair value of the underlying collateral.
Equipment lease financing loans are fixed, variable, and tax exempt leases for commercial purposes.
Commercial other loans consist of commercial check loans, agricultural loans, receivable financing, floorplans, loans to financial institutions, loans for purchasing or carrying securities, and other commercial purpose loans. Commercial loans are underwritten based on the borrower’s ability to service debt from the business’s underlying cash flows. As a general practice, we obtain collateral such as real estate, equipment, or other assets, although such loans may be uncollateralized but guaranteed.
Real estate construction loans are typically for owner-occupied properties. The terms of these loans are generally short-term with permanent financing upon completion.
Residential real estate loans are a mixture of fixed rate and adjustable rate first and second lien residential mortgage loans. As a policy, CTBI holds adjustable rate loans and sells the majority of its fixed rate first lien mortgage loans into the secondary market. Changes in interest rates or market conditions may impact a borrower’s ability to meet contractual principal and interest payments. Residential real estate loans are secured by real property.
Home equity lines are revolving adjustable rate credit lines secured by real property.
Consumer direct loans are a mixture of fixed rate and adjustable rate products comprised of unsecured loans, consumer revolving credit lines, deposit secured loans, and all other consumer purpose loans.
Consumer indirect loans are fixed rate loans secured by automobiles, trucks, vans, and recreational vehicles originated at the selling dealership underwritten and purchased by CTBI’s indirect lending department. Both new and used products are financed. Only dealers who have executed dealer agreements with CTBI participate in the indirect lending program.
Not included in the loan balances above were loans held for sale in the amount of $1.6 million at September 30, 2017 and $1.2 million at December 31, 2016.
Refer to note 1 to the condensed consolidated financial statements for further information regarding our nonaccrual policy. Nonaccrual loans segregated by class of loans were as follows:

(in thousands) |  | September 30 2017 |  |  | December 31 2016 |
Commercial: |  |  |  |  |  |
Commercial construction |  | $ | 1,311 |  |  | $ | 1,912 |
Commercial secured by real estate |  |  | 7,879 |  |  |  | 6,326 |
Commercial other |  |  | 1,070 |  |  |  | 1,559 |
Residential: |  |  |  |  |  |  |  |
Real estate construction |  |  | 1,062 |  |  |  | 11 |
Real estate mortgage |  |  | 7,915 |  |  |  | 6,260 |
Home equity |  |  | 561 |  |  |  | 555 |
Total nonaccrual loans |  | $ | 19,798 |  |  | $ | 16,623 |

The following tables present CTBI’s loan portfolio aging analysis, segregated by class, as of September 30, 2017 and December 31, 2016:

|  | September 30, 2017 |
(in thousands) |  | 30-59 Days Past Due |  |  | 60-89 Days Past Due |  |  | 90+ Days Past Due |  |  | Total Past Due |  |  | Current |  |  | Total Loans |  |  | 90+ and Accruing* |
Commercial: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  | $ | 69 |  |  | $ | 42 |  |  | $ | 1,311 |  |  | $ | 1,422 |  |  | $ | 72,860 |  |  | $ | 74,282 |  |  | $ | 0 |
Commercial secured by real estate |  |  | 3,549 |  |  |  | 1,287 |  |  |  | 8,316 |  |  |  | 13,152 |  |  |  | 1,184,452 |  |  |  | 1,197,604 |  |  |  | 1,518 |
Equipment lease financing |  |  | 0 |  |  |  | 0 |  |  |  | 0 |  |  |  | 0 |  |  |  | 3,290 |  |  |  | 3,290 |  |  |  | 0 |
Commercial other |  |  | 773 |  |  |  | 203 |  |  |  | 1,134 |  |  |  | 2,110 |  |  |  | 337,227 |  |  |  | 339,337 |  |  |  | 307 |
Residential: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Real estate construction |  |  | 144 |  |  |  | 382 |  |  |  | 344 |  |  |  | 870 |  |  |  | 63,571 |  |  |  | 64,441 |  |  |  | 155 |
Real estate mortgage |  |  | 1,005 |  |  |  | 5,205 |  |  |  | 13,646 |  |  |  | 19,856 |  |  |  | 692,381 |  |  |  | 712,237 |  |  |  | 7,389 |
Home equity |  |  | 685 |  |  |  | 250 |  |  |  | 756 |  |  |  | 1,691 |  |  |  | 95,064 |  |  |  | 96,755 |  |  |  | 333 |
Consumer: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Consumer direct |  |  | 810 |  |  |  | 152 |  |  |  | 156 |  |  |  | 1,118 |  |  |  | 136,539 |  |  |  | 137,657 |  |  |  | 156 |
Consumer indirect |  |  | 3,570 |  |  |  | 927 |  |  |  | 364 |  |  |  | 4,861 |  |  |  | 482,957 |  |  |  | 487,818 |  |  |  | 364 |
Total |  | $ | 10,605 |  |  | $ | 8,448 |  |  | $ | 26,027 |  |  | $ | 45,080 |  |  | $ | 3,068,341 |  |  | $ | 3,113,421 |  |  | $ | 10,222 |

|  | December 31, 2016 |
(in thousands) |  | 30-59 Days Past Due |  |  | 60-89 Days Past Due |  |  | 90+ Days Past Due |  |  | Total Past Due |  |  | Current |  |  | Total Loans |  |  | 90+ and Accruing* |
Commercial: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  | $ | 22 |  |  | $ | 0 |  |  | $ | 1,940 |  |  | $ | 1,962 |  |  | $ | 65,036 |  |  | $ | 66,998 |  |  | $ | 28 |
Commercial secured by real estate |  |  | 2,033 |  |  |  | 478 |  |  |  | 8,847 |  |  |  | 11,358 |  |  |  | 1,074,070 |  |  |  | 1,085,428 |  |  |  | 3,015 |
Equipment lease financing |  |  | 0 |  |  |  | 0 |  |  |  | 0 |  |  |  | 0 |  |  |  | 5,512 |  |  |  | 5,512 |  |  |  | 0 |
Commercial other |  |  | 997 |  |  |  | 122 |  |  |  | 1,235 |  |  |  | 2,354 |  |  |  | 347,805 |  |  |  | 350,159 |  |  |  | 141 |
Residential: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Real estate construction |  |  | 707 |  |  |  | 42 |  |  |  | 152 |  |  |  | 901 |  |  |  | 57,065 |  |  |  | 57,966 |  |  |  | 152 |
Real estate mortgage |  |  | 1,493 |  |  |  | 5,278 |  |  |  | 10,695 |  |  |  | 17,466 |  |  |  | 685,503 |  |  |  | 702,969 |  |  |  | 6,295 |
Home equity |  |  | 829 |  |  |  | 288 |  |  |  | 905 |  |  |  | 2,022 |  |  |  | 89,489 |  |  |  | 91,511 |  |  |  | 467 |
Consumer: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Consumer direct |  |  | 873 |  |  |  | 265 |  |  |  | 68 |  |  |  | 1,206 |  |  |  | 131,887 |  |  |  | 133,093 |  |  |  | 68 |
Consumer indirect |  |  | 3,288 |  |  |  | 851 |  |  |  | 681 |  |  |  | 4,820 |  |  |  | 439,915 |  |  |  | 444,735 |  |  |  | 681 |
Total |  | $ | 10,242 |  |  | $ | 7,324 |  |  | $ | 24,523 |  |  | $ | 42,089 |  |  | $ | 2,896,282 |  |  | $ | 2,938,371 |  |  | $ | 10,847 |

*90+ and Accruing are also included in 90+ Days Past Due column.
The risk characteristics of CTBI’s material portfolio segments are as follows:
Commercial construction loans generally are made to customers for the purpose of building income-producing properties. Personal guarantees of the principals are generally required. Such loans are made on a projected cash flow basis and are secured by the project being constructed. Construction loan draw procedures are included in each specific loan agreement, including required documentation items and inspection requirements. Construction loans may convert to term loans at the end of the construction period, or may be repaid by the take-out commitment from another financing source. If the loan is to convert to a term loan, the repayment ability is based on the borrower’s projected cash flow. Risk is mitigated during the construction phase by requiring proper documentation and inspections whenever a draw is requested. Loans in amounts greater than $500,000 generally require a performance bond to be posted by the general contractor to assure completion of the project.
Commercial real estate loans are viewed primarily as cash flow loans and secondarily as loans secured by real estate. Commercial real estate lending typically involves higher loan principal amounts and the repayment of these loans is generally dependent on the successful operation of the property securing the loan or the business conducted on the property securing the loan. Commercial real estate loans may be more adversely affected by conditions in the real estate markets or in the general economy. Management monitors and evaluates commercial real estate loans based on collateral and risk grade criteria.
Equipment lease financing is underwritten by our commercial lenders using the same underwriting standards as would be applied to a secured commercial loan requesting 100% financing. The pricing for equipment lease financing is comparable to that of borrowers with similar quality commercial credits with similar collateral. Maximum terms of equipment leasing are determined by the type and expected life of the equipment to be leased. Residual values are determined by appraisals or opinion letters from industry experts. Leases must be in conformity with our consolidated annual tax plan. As we underwrite our equipment lease financing in a manner similar to our commercial loan portfolio described below, the risk characteristics for this portfolio mirror that of the commercial loan portfolio.
Commercial loans are primarily based on the identified cash flows of the borrower and secondarily on the underlying collateral provided by the borrower. The cash flows of borrowers, however, may not be as expected and the collateral securing these loans may fluctuate in value. Most commercial loans are secured by the assets being financed or other business assets such as accounts receivable or inventory and may incorporate a personal guarantee; however, some short-term loans may be made on an unsecured basis. In the case of loans secured by accounts receivable, the availability of funds for the repayment of these loans may be substantially dependent on the ability of the borrower to collect amounts due from its customers.
With respect to residential loans that are secured by 1-4 family residences and are generally owner occupied, CTBI generally establishes a maximum loan-to-value ratio and requires private mortgage insurance if that ratio is exceeded. Home equity loans are typically secured by a subordinate interest in 1-4 family residences. Residential construction loans are handled through the home mortgage area of the bank. The repayment ability of the borrower and the maximum loan-to-value ratio are calculated using the normal mortgage lending criteria. Draws are processed based on percentage of completion stages including normal inspection procedures. Such loans generally convert to term loans after the completion of construction.
Consumer loans are secured by consumer assets such as automobiles or recreational vehicles. Some consumer loans are unsecured such as small installment loans and certain lines of credit. Our determination of a borrower’s ability to repay these loans is primarily dependent on the personal income and credit rating of the borrowers, which can be impacted by economic conditions in their market areas such as unemployment levels. Repayment can also be impacted by changes in property values on residential properties. Risk is mitigated by the fact that the loans are of smaller individual amounts and spread over a large number of borrowers.
The indirect lending area of the bank generally deals with purchasing/funding consumer contracts with new and used automobile dealers. The dealers generate consumer loan applications which are forwarded to the indirect loan processing area for approval or denial. Loan approvals or denials are based on the creditworthiness and repayment ability of the borrower, and on the collateral value. The dealers may have limited recourse agreements with CTB.
Credit Quality Indicators:
CTBI categorizes loans into risk categories based on relevant information about the ability of borrowers to service their debt such as: current financial information, historical payment experience, credit documentation, public information, and current economic trends, among other factors. CTBI also considers the fair value of the underlying collateral and the strength and willingness of the guarantor(s). CTBI analyzes commercial loans individually by classifying the loans as to credit risk. Loans classified as loss, doubtful, substandard, or special mention are reviewed quarterly by CTBI for further deterioration or improvement to determine if appropriately classified and valued if deemed impaired. All other commercial loan reviews are completed every 12 to 18 months. In addition, during the renewal process of any loan, as well as if a loan becomes past due or if other information becomes available, CTBI will evaluate the loan grade. CTBI uses the following definitions for risk ratings:

Ø | Pass grades include investment grade, low risk, moderate risk, and acceptable risk loans. The loans range from loans that have no chance of resulting in a loss to loans that have a limited chance of resulting in a loss. Customers in this grade have excellent to fair credit ratings. The cash flows are adequate to meet required debt repayments.

Ø | Watch graded loans are loans that warrant extra management attention but are not currently criticized. Loans on the watch list may be potential troubled credits or may warrant “watch” status for a reason not directly related to the asset quality of the credit. The watch grade is a management tool to identify credits which may be candidates for future classification or may temporarily warrant extra management monitoring.

Ø | Other assets especially mentioned (OAEM) reflects loans that are currently protected but are potentially weak. These loans constitute an undue and unwarranted credit risk but not to the point of justifying a classification of substandard. The credit risk may be relatively minor yet constitute an unwarranted risk in light of circumstances surrounding a specific asset. Loans in this grade display potential weaknesses which may, if unchecked or uncorrected, inadequately protect CTBI’s credit position at some future date. The loans may be adversely affected by economic or market conditions.

Ø | Substandard grading indicates that the loan is inadequately protected by the current sound worth and paying capacity of the obligor or of the collateral pledged. These loans have a well-defined weakness or weaknesses that jeopardize the orderly liquidation of the debt with the distinct possibility that CTBI will sustain some loss if the deficiencies are not corrected.

Ø | Doubtful graded loans have the weaknesses inherent in the substandard grading with the added characteristic that the weaknesses make collection or liquidation in full, on the basis of currently existing facts, conditions, and values, highly questionable and improbable. The probability of loss is extremely high, but because of certain important and reasonably specific pending factors which may work to CTBI’s advantage or strengthen the asset(s), its classification as an estimated loss is deferred until its more exact status may be determined. Pending factors include proposed merger, acquisition, or liquidation procedures, capital injection, perfecting liens on additional collateral, and refinancing plans.

The following tables present the credit risk profile of CTBI’s commercial loan portfolio based on rating category and payment activity, segregated by class of loans, as of September 30, 2017 and December 31, 2016:

(in thousands) |  | Commercial Construction |  |  | Commercial Secured by Real Estate |  |  | Equipment Leases |  |  | Commercial Other |  |  | Total |
September 30, 2017 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Pass |  | $ | 64,983 |  |  | $ | 1,059,574 |  |  | $ | 3,229 |  |  | $ | 292,574 |  |  | $ | 1,420,360 |
Watch |  |  | 3,566 |  |  |  | 67,065 |  |  |  | 0 |  |  |  | 31,270 |  |  |  | 101,901 |
OAEM |  |  | 1,657 |  |  |  | 21,676 |  |  |  | 61 |  |  |  | 2,056 |  |  |  | 25,450 |
Substandard |  |  | 3,898 |  |  |  | 49,072 |  |  |  | 0 |  |  |  | 13,078 |  |  |  | 66,048 |
Doubtful |  |  | 178 |  |  |  | 217 |  |  |  | 0 |  |  |  | 359 |  |  |  | 754 |
Total |  | $ | 74,282 |  |  | $ | 1,197,604 |  |  | $ | 3,290 |  |  | $ | 339,337 |  |  | $ | 1,614,513 |
December 31, 2016 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Pass |  | $ | 55,315 |  |  | $ | 975,383 |  |  | $ | 5,206 |  |  | $ | 299,301 |  |  | $ | 1,335,205 |
Watch |  |  | 3,366 |  |  |  | 51,932 |  |  |  | 137 |  |  |  | 32,780 |  |  |  | 88,215 |
OAEM |  |  | 2,535 |  |  |  | 25,772 |  |  |  | 169 |  |  |  | 7,913 |  |  |  | 36,389 |
Substandard |  |  | 5,592 |  |  |  | 31,945 |  |  |  | 0 |  |  |  | 9,599 |  |  |  | 47,136 |
Doubtful |  |  | 190 |  |  |  | 396 |  |  |  | 0 |  |  |  | 566 |  |  |  | 1,152 |
Total |  | $ | 66,998 |  |  | $ | 1,085,428 |  |  | $ | 5,512 |  |  | $ | 350,159 |  |  | $ | 1,508,097 |

The following tables present the credit risk profile of CTBI’s residential real estate and consumer loan portfolios based on performing or nonperforming status, segregated by class, as of September 30, 2017 and December 31, 2016:

(in thousands) |  | Real Estate Construction |  |  | Real Estate Mortgage |  |  | Home Equity |  |  | Consumer Direct |  |  | Consumer Indirect |  |  | Total |
September 30, 2017 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Performing |  | $ | 63,224 |  |  | $ | 696,933 |  |  | $ | 95,861 |  |  | $ | 137,501 |  |  | $ | 487,454 |  |  | $ | 1,480,973 |
Nonperforming (1) |  |  | 1,217 |  |  |  | 15,304 |  |  |  | 894 |  |  |  | 156 |  |  |  | 364 |  |  |  | 17,935 |
Total |  | $ | 64,441 |  |  | $ | 712,237 |  |  | $ | 96,755 |  |  | $ | 137,657 |  |  | $ | 487,818 |  |  | $ | 1,498,908 |
December 31, 2016 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Performing |  | $ | 57,803 |  |  | $ | 690,414 |  |  | $ | 90,489 |  |  | $ | 133,025 |  |  | $ | 444,054 |  |  | $ | 1,415,785 |
Nonperforming (1) |  |  | 163 |  |  |  | 12,555 |  |  |  | 1,022 |  |  |  | 68 |  |  |  | 681 |  |  |  | 14,489 |
Total |  | $ | 57,966 |  |  | $ | 702,969 |  |  | $ | 91,511 |  |  | $ | 133,093 |  |  | $ | 444,735 |  |  | $ | 1,430,274 |

(1) A loan is considered nonperforming if it is 90 days or more past due and/or on nonaccrual.
The total of consumer mortgage loans secured by real estate properties for which formal foreclosure proceedings are in process totaled $4.8 million at September 30, 2017 compared to $3.5 million at December 31, 2016.
A loan is considered impaired, in accordance with the impairment accounting guidance (ASC 310-10-35-16), when based on current information and events, it is probable CTBI will be unable to collect all amounts due from the borrower in accordance with the contractual terms of the loan. Impaired loans include nonperforming commercial loans but also include loans modified in troubled debt restructurings where concessions have been granted to borrowers experiencing financial difficulties. These concessions could include a reduction in the interest rate on the loan, payment extensions, forgiveness of principal, forbearance, or other actions intended to maximize collection.
The following table presents impaired loans, the average investment in impaired loans, and interest income recognized on impaired loans for the periods ended September 30, 2017, December 31, 2016, and September 30, 2016:

|  | September 30, 2017 |
(in thousands) |  | Recorded Balance |  |  | Unpaid Contractual Principal Balance |  |  | Specific Allowance |
Loans without a specific valuation allowance: |  |  |  |  |  |  |  |  |
Commercial construction |  | $ | 4,613 |  |  | $ | 4,621 |  |  | $ | 0 |
Commercial secured by real estate |  |  | 25,322 |  |  |  | 25,916 |  |  |  | 0 |
Commercial other |  |  | 9,994 |  |  |  | 11,804 |  |  |  | 0 |
Real estate construction |  |  | 873 |  |  |  | 873 |  |  |  | 0 |
Real estate mortgage |  |  | 1,196 |  |  |  | 1,196 |  |  |  | 0 |
Loans with a specific valuation allowance: |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 153 |  |  |  | 174 |  |  |  | 25 |
Commercial secured by real estate |  |  | 3,918 |  |  |  | 5,023 |  |  |  | 1,301 |
Commercial other |  |  | 130 |  |  |  | 133 |  |  |  | 65 |
Totals: |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 4,766 |  |  |  | 4,795 |  |  |  | 25 |
Commercial secured by real estate |  |  | 29,240 |  |  |  | 30,939 |  |  |  | 1,301 |
Commercial other |  |  | 10,124 |  |  |  | 11,937 |  |  |  | 65 |
Real estate construction |  |  | 873 |  |  |  | 873 |  |  |  | 0 |
Real estate mortgage |  |  | 1,196 |  |  |  | 1,196 |  |  |  | 0 |
Total |  | $ | 46,199 |  |  | $ | 49,740 |  |  | $ | 1,391 |

|  | Three Months Ended |  |  | Nine Months Ended |
|  | September 30, 2017 |  |  | September 30, 2017 |
(in thousands) |  | Average Investment in Impaired Loans |  |  | *Interest Income Recognized |  |  | Average Investment in Impaired Loans |  |  | *Interest Income Recognized |
Loans without a specific valuation allowance: |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  | $ | 4,662 |  |  | $ | 50 |  |  | $ | 4,955 |  |  | $ | 136 |
Commercial secured by real estate |  |  | 25,452 |  |  |  | 276 |  |  |  | 27,318 |  |  |  | 980 |
Equipment lease financing |  |  | 0 |  |  |  | 0 |  |  |  | 45 |  |  |  | 0 |
Commercial other |  |  | 10,191 |  |  |  | 123 |  |  |  | 10,717 |  |  |  | 396 |
Real estate construction |  |  | 860 |  |  |  | 0 |  |  |  | 569 |  |  |  | 0 |
Real estate mortgage |  |  | 1,197 |  |  |  | 8 |  |  |  | 1,601 |  |  |  | 30 |
Loans with a specific valuation allowance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 153 |  |  |  | 0 |  |  |  | 156 |  |  |  | 0 |
Commercial secured by real estate |  |  | 3,984 |  |  |  | 3 |  |  |  | 4,236 |  |  |  | 8 |
Commercial other |  |  | 130 |  |  |  | 0 |  |  |  | 87 |  |  |  | 0 |
Totals: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 4,815 |  |  |  | 50 |  |  |  | 5,111 |  |  |  | 136 |
Commercial secured by real estate |  |  | 29,436 |  |  |  | 279 |  |  |  | 31,554 |  |  |  | 988 |
Equipment lease financing |  |  | 0 |  |  |  | 0 |  |  |  | 45 |  |  |  | 0 |
Commercial other |  |  | 10,321 |  |  |  | 123 |  |  |  | 10,804 |  |  |  | 396 |
Real estate construction |  |  | 860 |  |  |  | 0 |  |  |  | 569 |  |  |  | 0 |
Real estate mortgage |  |  | 1,197 |  |  |  | 8 |  |  |  | 1,601 |  |  |  | 30 |
Total |  | $ | 46,629 |  |  | $ | 460 |  |  | $ | 49,684 |  |  | $ | 1,550 |

|  | December 31, 2016 |
(in thousands) |  | Recorded Balance |  |  | Unpaid Contractual Principal Balance |  |  | Specific Allowance |  |  | Average Investment in Impaired Loans |  |  | *Interest Income Recognized |
Loans without a specific valuation allowance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  | $ | 4,102 |  |  | $ | 4,123 |  |  | $ | 0 |  |  | $ | 4,367 |  |  | $ | 218 |
Commercial secured by real estate |  |  | 29,025 |  |  |  | 29,594 |  |  |  | 0 |  |  |  | 31,136 |  |  |  | 1,609 |
Commercial other |  |  | 11,215 |  |  |  | 13,155 |  |  |  | 0 |  |  |  | 11,561 |  |  |  | 632 |
Real estate mortgage |  |  | 1,483 |  |  |  | 1,483 |  |  |  | 0 |  |  |  | 1,691 |  |  |  | 52 |
Loans with a specific valuation allowance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 1,507 |  |  |  | 1,509 |  |  |  | 213 |  |  |  | 2,290 |  |  |  | 0 |
Commercial secured by real estate |  |  | 4,731 |  |  |  | 5,885 |  |  |  | 1,035 |  |  |  | 4,151 |  |  |  | 19 |
Commercial other |  |  | 139 |  |  |  | 139 |  |  |  | 65 |  |  |  | 483 |  |  |  | 0 |
Totals: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 5,609 |  |  |  | 5,632 |  |  |  | 213 |  |  |  | 6,657 |  |  |  | 218 |
Commercial secured by real estate |  |  | 33,756 |  |  |  | 35,479 |  |  |  | 1,035 |  |  |  | 35,287 |  |  |  | 1,628 |
Commercial other |  |  | 11,354 |  |  |  | 13,294 |  |  |  | 65 |  |  |  | 12,044 |  |  |  | 632 |
Real estate mortgage |  |  | 1,483 |  |  |  | 1,483 |  |  |  | 0 |  |  |  | 1,691 |  |  |  | 52 |
Total |  | $ | 52,202 |  |  | $ | 55,888 |  |  | $ | 1,313 |  |  | $ | 55,679 |  |  | $ | 2,530 |

|  | September 30, 2016 |
(in thousands) |  | Recorded Balance |  |  | Unpaid Contractual Principal Balance |  |  | Specific Allowance |
Loans without a specific valuation allowance: |  |  |  |  |  |  |  |  |
Commercial construction |  | $ | 4,270 |  |  | $ | 4,293 |  |  | $ | 0 |
Commercial secured by real estate |  |  | 32,311 |  |  |  | 33,004 |  |  |  | 0 |
Commercial other |  |  | 11,382 |  |  |  | 13,191 |  |  |  | 0 |
Real estate mortgage |  |  | 1,489 |  |  |  | 1,489 |  |  |  | 0 |
Loans with a specific valuation allowance: |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 1,668 |  |  |  | 1,670 |  |  |  | 212 |
Commercial secured by real estate |  |  | 3,537 |  |  |  | 4,688 |  |  |  | 747 |
Commercial other |  |  | 388 |  |  |  | 408 |  |  |  | 190 |
Totals: |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 5,938 |  |  |  | 5,963 |  |  |  | 212 |
Commercial secured by real estate |  |  | 35,848 |  |  |  | 37,692 |  |  |  | 747 |
Commercial other |  |  | 11,770 |  |  |  | 13,599 |  |  |  | 190 |
Real estate mortgage |  |  | 1,489 |  |  |  | 1,489 |  |  |  | 0 |
Total |  | $ | 55,045 |  |  | $ | 58,743 |  |  | $ | 1,149 |

|  | Three Months Ended |  |  | Nine Months Ended |
|  | September 30, 2016 |  |  | September 30, 2016 |
(in thousands) |  | Average Investment in Impaired Loans |  |  | *Interest Income Recognized |  |  | Average Investment in Impaired Loans |  |  | *Interest Income Recognized |
Loans without a specific valuation allowance: |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  | $ | 4,299 |  |  | $ | 63 |  |  | $ | 4,450 |  |  | $ | 168 |
Commercial secured by real estate |  |  | 32,534 |  |  |  | 390 |  |  |  | 31,795 |  |  |  | 1,164 |
Commercial other |  |  | 11,497 |  |  |  | 153 |  |  |  | 11,564 |  |  |  | 470 |
Real estate mortgage |  |  | 1,492 |  |  |  | 15 |  |  |  | 1,759 |  |  |  | 45 |
Loans with a specific valuation allowance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 1,798 |  |  |  | 0 |  |  |  | 2,524 |  |  |  | 0 |
Commercial secured by real estate |  |  | 3,547 |  |  |  | 1 |  |  |  | 3,957 |  |  |  | 19 |
Commercial other |  |  | 405 |  |  |  | 0 |  |  |  | 597 |  |  |  | 0 |
Totals: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 6,097 |  |  |  | 63 |  |  |  | 6,974 |  |  |  | 168 |
Commercial secured by real estate |  |  | 36,081 |  |  |  | 391 |  |  |  | 35,752 |  |  |  | 1,183 |
Commercial other |  |  | 11,902 |  |  |  | 153 |  |  |  | 12,161 |  |  |  | 470 |
Real estate mortgage |  |  | 1,492 |  |  |  | 15 |  |  |  | 1,759 |  |  |  | 45 |
Total |  | $ | 55,572 |  |  | $ | 622 |  |  | $ | 56,646 |  |  | $ | 1,866 |

*Cash basis interest is substantially the same as interest income recognized.
Included in certain loan categories of impaired loans are certain loans and leases that have been modified in a troubled debt restructuring, where economic concessions have been granted to borrowers who have experienced financial difficulties. These concessions typically result from our loss mitigation activities and could include reductions in the interest rate, payment extensions, forgiveness of principal, forbearance or other actions. Modifications of terms for our loans and their inclusion as troubled debt restructurings are based on individual facts and circumstances. Loan modifications that are included as troubled debt restructurings may involve either an increase or reduction of the interest rate, extension of the term of the loan, or deferral of principal and/or interest payments, regardless of the period of the modification. All of the loans identified as troubled debt restructuring were modified due to financial stress of the borrower. In order to determine if a borrower is experiencing financial difficulty, an evaluation is performed to determine the probability that the borrower will be in payment default on any of its debt in the foreseeable future without the modification. This evaluation is performed under CTBI’s internal underwriting policy.
When we modify loans and leases in a troubled debt restructuring, we evaluate any possible impairment similar to other impaired loans based on the present value of expected future cash flows, discounted at the contractual interest rate of the original loan or lease agreement, or use the current fair value of the collateral, less selling costs for collateral dependent loans. If we determined that the value of the modified loan is less than the recorded investment in the loan (net of previous charge-offs, deferred loan fees or costs and unamortized premium or discount), impairment is recognized through an allowance estimate or a charge-off to the allowance. In periods subsequent to modification, we evaluate all troubled debt restructuring, including those that have payment defaults, for possible impairment and recognize impairment through the allowance.
During 2017, certain loans were modified in troubled debt restructurings, where economic concessions were granted to borrowers consisting of reductions in the interest rates, payment extensions, forgiveness of principal, and forbearances. Presented below, segregated by class of loans, are troubled debt restructurings that occurred during the three and nine months ended September 30, 2017 and 2016 and the year ended December 31, 2016:

|  | Three Months Ended September 30, 2017 |
(in thousands) |  | Number of Loans |  |  | Term Modification |  |  | Rate Modification |  |  | Combination |  |  | Post-Modification Outstanding Balance |
Commercial: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial secured by real estate |  |  | 6 |  |  | $ | 295 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 295 |
Commercial other |  |  | 1 |  |  |  | 102 |  |  |  | 0 |  |  |  | 0 |  |  |  | 102 |
Total troubled debt restructurings |  |  | 7 |  |  | $ | 397 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 397 |

|  | Nine Months Ended September 30, 2017 |
(in thousands) |  | Number of Loans |  |  | Term Modification |  |  | Rate Modification |  |  | Combination |  |  | Post-Modification Outstanding Balance |
Commercial: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 2 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 114 |  |  | $ | 114 |
Commercial secured by real estate |  |  | 11 |  |  |  | 874 |  |  |  | 0 |  |  |  | 192 |  |  |  | 1,066 |
Commercial other |  |  | 10 |  |  |  | 237 |  |  |  | 0 |  |  |  | 136 |  |  |  | 373 |
Residential: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Real estate construction |  |  | 1 |  |  |  | 846 |  |  |  | 0 |  |  |  | 0 |  |  |  | 846 |
Real estate mortgage |  |  | 1 |  |  |  | 323 |  |  |  | 0 |  |  |  | 0 |  |  |  | 323 |
Total troubled debt restructurings |  |  | 25 |  |  | $ | 2,280 |  |  | $ | 0 |  |  | $ | 442 |  |  | $ | 2,722 |

|  | Three Months Ended September 30, 2016 |
(in thousands) |  | Number of Loans |  |  | Term Modification |  |  | Rate Modification |  |  | Combination |  |  | Post-Modification Outstanding Balance |
Commercial: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial secured by real estate |  |  | 2 |  |  | $ | 152 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 152 |
Total troubled debt restructurings |  |  | 2 |  |  | $ | 152 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 152 |

|  | Nine Months Ended September 30, 2016 |
(in thousands) |  | Number of Loans |  |  | Term Modification |  |  | Rate Modification |  |  | Combination |  |  | Post-Modification Outstanding Balance |
Commercial: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 5 |  |  | $ | 1,408 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 1,408 |
Commercial secured by real estate |  |  | 23 |  |  |  | 5,761 |  |  |  | 0 |  |  |  | 580 |  |  |  | 6,341 |
Commercial other |  |  | 16 |  |  |  | 5,041 |  |  |  | 0 |  |  |  | 0 |  |  |  | 5,041 |
Residential: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Real estate mortgage |  |  | 1 |  |  |  | 0 |  |  |  | 0 |  |  |  | 280 |  |  |  | 280 |
Total troubled debt restructurings |  |  | 45 |  |  | $ | 12,210 |  |  | $ | 0 |  |  | $ | 860 |  |  | $ | 13,070 |

|  | Year Ended December 31, 2016 |
(in thousands) |  | Number of Loans |  |  | Term Modification |  |  | Rate Modification |  |  | Combination |  |  | Post-Modification Outstanding Balance |
Commercial: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Commercial construction |  |  | 1 |  |  | $ | 1,288 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 1,288 |
Commercial secured by real estate |  |  | 27 |  |  |  | 8,827 |  |  |  | 0 |  |  |  | 581 |  |  |  | 9,408 |
Commercial other |  |  | 14 |  |  |  | 5,088 |  |  |  | 0 |  |  |  | 87 |  |  |  | 5,175 |
Residential: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Real estate mortgage |  |  | 1 |  |  |  | 0 |  |  |  | 0 |  |  |  | 281 |  |  |  | 281 |
Total troubled debt restructurings |  |  | 43 |  |  | $ | 15,203 |  |  | $ | 0 |  |  | $ | 949 |  |  | $ | 16,152 |

No charge-offs have resulted from modifications for any of the presented periods. We had commitments to extend additional credit in the amount of $0.1 million on loans that were considered troubled debt restructurings at September 30, 2017.
Loans retain their accrual status at the time of their modification. As a result, if a loan is on nonaccrual at the time it is modified, it stays as nonaccrual, and if a loan is on accrual at the time of the modification, it generally stays on accrual. Commercial and consumer loans modified in a troubled debt restructuring are closely monitored for delinquency as an early indicator of possible future default. If loans modified in a troubled debt restructuring subsequently default, CTBI evaluates the loan for possible further impairment. The allowance for loan losses may be increased, adjustments may be made in the allocation of the allowance, or partial charge-offs may be taken to further write-down the carrying value of the loan. Presented below, segregated by class of loans, are loans that were modified as troubled debt restructurings within the prior twelve months which subsequently defaulted during the three and nine months ended September 30, 2017 and 2016. CTBI considers a loan in default when it is 90 days or more past due or transferred to nonaccrual.

(in thousands) |  | Three Months Ended September 30, 2017 |  |  | Nine Months Ended September 30, 2017 |
|  | Number of Loans |  |  | Recorded Balance |  |  | Number of Loans |  |  | Recorded Balance |
Commercial: |  |  |  |  |  |  |  |  |  |  |  |
Commercial secured by real estate |  |  | 2 |  |  | $ | 961 |  |  |  | 2 |  |  | $ | 961 |
Residential: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Real estate construction |  |  | 1 |  |  |  | 846 |  |  |  | 1 |  |  |  | 846 |
Total defaulted restructured loans |  |  | 3 |  |  | $ | 1,807 |  |  |  | 3 |  |  | $ | 1,807 |

(in thousands) |  | Three Months Ended September 30, 2016 |  |  | Nine Months Ended September 30, 2016 |
|  | Number of Loans |  |  | Recorded Balance |  |  | Number of Loans |  |  | Recorded Balance |
Commercial: |  |  |  |  |  |  |  |  |  |  |  |
Commercial secured by real estate |  |  | 1 |  |  | $ | 1,446 |  |  |  | 2 |  |  | $ | 1,956 |
Commercial other |  |  | 1 |  |  |  | 14 |  |  |  | 2 |  |  |  | 372 |
Total defaulted restructured loans |  |  | 2 |  |  | $ | 1,460 |  |  |  | 4 |  |  | $ | 2,328 |

Note 5 – Allowance for Loan and Lease Losses
The following tables present the balance in the allowance for loan and lease losses (“ALLL”) and the recorded investment in loans based on portfolio segment and impairment method as of September 30, 2017, December 31, 2016 and September 30, 2016:

|  | Three Months Ended September 30, 2017 |
(in thousands) |  | Commercial Construction |  |  | Commercial Secured by Real Estate |  |  | Equipment Lease Financing |  |  | Commercial Other |  |  | Real Estate Construction |  |  | Real Estate Mortgage |  |  | Home Equity |  |  | Consumer Direct |  |  | Consumer Indirect |  |  | Total |
Allowance for loan losses |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance |  | $ | 669 |  |  | $ | 15,299 |  |  | $ | 33 |  |  | $ | 4,993 |  |  | $ | 581 |  |  | $ | 5,662 |  |  | $ | 747 |  |  | $ | 1,866 |  |  | $ | 7,283 |  |  | $ | 37,133 |
Provision charged to expense |  |  | (19 | ) |  |  | (1 | ) |  |  | (14 | ) |  |  | 210 |  |  |  | 49 |  |  |  | 276 |  |  |  | 113 |  |  |  | 47 |  |  |  | 5 |  |  |  | 666 |
Losses charged off |  |  | (6 | ) |  |  | (249 | ) |  |  | 0 |  |  |  | (549 | ) |  |  | 0 |  |  |  | (158 | ) |  |  | (53 | ) |  |  | (166 | ) |  |  | (1,262 | ) |  |  | (2,443 | )
Recoveries |  |  | 28 |  |  |  | 53 |  |  |  | 0 |  |  |  | 308 |  |  |  | 0 |  |  |  | 6 |  |  |  | 0 |  |  |  | 110 |  |  |  | 530 |  |  |  | 1,035 |
Ending balance |  | $ | 672 |  |  | $ | 15,102 |  |  | $ | 19 |  |  | $ | 4,962 |  |  | $ | 630 |  |  | $ | 5,786 |  |  | $ | 807 |  |  | $ | 1,857 |  |  | $ | 6,556 |  |  | $ | 36,391 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Individually evaluated for impairment |  | $ | 25 |  |  | $ | 1,301 |  |  | $ | 0 |  |  | $ | 65 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 1,391 |
Collectively evaluated for impairment |  | $ | 647 |  |  | $ | 13,801 |  |  | $ | 19 |  |  | $ | 4,897 |  |  | $ | 630 |  |  | $ | 5,786 |  |  | $ | 807 |  |  | $ | 1,857 |  |  | $ | 6,556 |  |  | $ | 35,000 |
Loans |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Individually evaluated for impairment |  | $ | 4,766 |  |  | $ | 29,240 |  |  | $ | 0 |  |  | $ | 10,124 |  |  | $ | 873 |  |  | $ | 1,196 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 46,199 |
Collectively evaluated for impairment |  | $ | 69,516 |  |  | $ | 1,168,364 |  |  | $ | 3,290 |  |  | $ | 329,213 |  |  | $ | 63,568 |  |  | $ | 711,041 |  |  | $ | 96,755 |  |  | $ | 137,657 |  |  | $ | 487,818 |  |  | $ | 3,067,222 |

|  | Nine Months Ended September 30, 2017 |
(in thousands) |  | Commercial Construction |  |  | Commercial Secured by Real Estate |  |  | Equipment Lease Financing |  |  | Commercial Other |  |  | Real Estate Construction |  |  | Real Estate Mortgage |  |  | Home Equity |  |  | Consumer Direct |  |  | Consumer Indirect |  |  | Total |
Allowance for loan losses |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance |  | $ | 884 |  |  | $ | 14,191 |  |  | $ | 42 |  |  | $ | 4,656 |  |  | $ | 629 |  |  | $ | 6,027 |  |  | $ | 774 |  |  | $ | 1,885 |  |  | $ | 6,845 |  |  | $ | 35,933 |
Provision charged to expense |  |  | (239 | ) |  |  | 1,622 |  |  |  | (23 | ) |  |  | 1,229 |  |  |  | 0 |  |  |  | 1 |  |  |  | 87 |  |  |  | 243 |  |  |  | 1,739 |  |  |  | 4,659 |
Losses charged off |  |  | (10 | ) |  |  | (776 | ) |  |  | 0 |  |  |  | (1,386 | ) |  |  | 0 |  |  |  | (321 | ) |  |  | (57 | ) |  |  | (675 | ) |  |  | (3,898 | ) |  |  | (7,123 | )
Recoveries |  |  | 37 |  |  |  | 65 |  |  |  | 0 |  |  |  | 463 |  |  |  | 1 |  |  |  | 79 |  |  |  | 3 |  |  |  | 404 |  |  |  | 1,870 |  |  |  | 2,922 |
Ending balance |  | $ | 672 |  |  | $ | 15,102 |  |  | $ | 19 |  |  | $ | 4,962 |  |  | $ | 630 |  |  | $ | 5,786 |  |  | $ | 807 |  |  | $ | 1,857 |  |  | $ | 6,556 |  |  | $ | 36,391 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Individually evaluated for impairment |  | $ | 25 |  |  | $ | 1,301 |  |  | $ | 0 |  |  | $ | 65 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 1,391 |
Collectively evaluated for impairment |  | $ | 647 |  |  | $ | 13,801 |  |  | $ | 19 |  |  | $ | 4,897 |  |  | $ | 630 |  |  | $ | 5,786 |  |  | $ | 807 |  |  | $ | 1,857 |  |  | $ | 6,556 |  |  | $ | 35,000 |
Loans |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Individually evaluated for impairment |  | $ | 4,766 |  |  | $ | 29,240 |  |  | $ | 0 |  |  | $ | 10,124 |  |  | $ | 873 |  |  | $ | 1,196 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 46,199 |
Collectively evaluated for impairment |  | $ | 69,516 |  |  | $ | 1,168,364 |  |  | $ | 3,290 |  |  | $ | 329,213 |  |  | $ | 63,568 |  |  | $ | 711,041 |  |  | $ | 96,755 |  |  | $ | 137,657 |  |  | $ | 487,818 |  |  | $ | 3,067,222 |

|  | Three Months Ended September 30, 2016 |
(in thousands) |  | Commercial Construction |  |  | Commercial Secured by Real Estate |  |  | Equipment Lease Financing |  |  | Commercial Other |  |  | Real Estate Construction |  |  | Real Estate Mortgage |  |  | Home Equity |  |  | Consumer Direct |  |  | Consumer Indirect |  |  | Total |
Allowance for loan losses |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance |  | $ | 1,437 |  |  | $ | 14,438 |  |  | $ | 94 |  |  | $ | 4,430 |  |  | $ | 558 |  |  | $ | 6,372 |  |  | $ | 819 |  |  | $ | 1,634 |  |  | $ | 5,915 |  |  | $ | 35,697 |
Provision charged to expense |  |  | 54 |  |  |  | 585 |  |  |  | (28 | ) |  |  | 185 |  |  |  | 8 |  |  |  | 330 |  |  |  | 3 |  |  |  | 170 |  |  |  | 884 |  |  |  | 2,191 |
Losses charged off |  |  | (79 | ) |  |  | (319 | ) |  |  | 0 |  |  |  | (622 | ) |  |  | (61 | ) |  |  | (366 | ) |  |  | 0 |  |  |  | (204 | ) |  |  | (1,311 | ) |  |  | (2,962 | )
Recoveries |  |  | 18 |  |  |  | 78 |  |  |  | 0 |  |  |  | 92 |  |  |  | 4 |  |  |  | 8 |  |  |  | 2 |  |  |  | 111 |  |  |  | 562 |  |  |  | 875 |
Ending balance |  | $ | 1,430 |  |  | $ | 14,782 |  |  | $ | 66 |  |  | $ | 4,085 |  |  | $ | 509 |  |  | $ | 6,344 |  |  | $ | 824 |  |  | $ | 1,711 |  |  | $ | 6,050 |  |  | $ | 35,801 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Individually evaluated for impairment |  | $ | 212 |  |  | $ | 747 |  |  | $ | 0 |  |  | $ | 190 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 1,149 |
Collectively evaluated for impairment |  | $ | 1,218 |  |  | $ | 14,035 |  |  | $ | 66 |  |  | $ | 3,895 |  |  | $ | 509 |  |  | $ | 6,344 |  |  | $ | 824 |  |  | $ | 1,711 |  |  | $ | 6,050 |  |  | $ | 34,652 |
Loans |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Individually evaluated for impairment |  | $ | 5,938 |  |  | $ | 35,848 |  |  | $ | 0 |  |  | $ | 11,770 |  |  | $ | 0 |  |  | $ | 1,489 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 55,045 |
Collectively evaluated for impairment |  | $ | 62,337 |  |  | $ | 1,047,792 |  |  | $ | 6,242 |  |  | $ | 343,214 |  |  | $ | 55,412 |  |  | $ | 704,539 |  |  | $ | 89,467 |  |  | $ | 131,815 |  |  | $ | 435,436 |  |  | $ | 2,876,254 |

|  | Nine Months Ended September 30, 2016 |
(in thousands) |  | Commercial Construction |  |  | Commercial Secured by Real Estate |  |  | Equipment Lease Financing |  |  | Commercial Other |  |  | Real Estate Construction |  |  | Real Estate Mortgage |  |  | Home Equity |  |  | Consumer Direct |  |  | Consumer Indirect |  |  | Total |
Allowance for loan losses |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance |  | $ | 2,199 |  |  | $ | 14,434 |  |  | $ | 79 |  |  | $ | 4,225 |  |  | $ | 550 |  |  | $ | 6,678 |  |  | $ | 839 |  |  | $ | 1,594 |  |  | $ | 5,496 |  |  | $ | 36,094 |
Provision charged to expense |  |  | (701 | ) |  |  | 1,726 |  |  |  | (13 | ) |  |  | 1,156 |  |  |  | 144 |  |  |  | 440 |  |  |  | (1 | ) |  |  | 669 |  |  |  | 2,409 |  |  |  | 5,829 |
Losses charged off |  |  | (94 | ) |  |  | (1,505 | ) |  |  | 0 |  |  |  | (1,667 | ) |  |  | (192 | ) |  |  | (849 | ) |  |  | (21 | ) |  |  | (893 | ) |  |  | (3,508 | ) |  |  | (8,729 | )
Recoveries |  |  | 26 |  |  |  | 127 |  |  |  | 0 |  |  |  | 371 |  |  |  | 7 |  |  |  | 75 |  |  |  | 7 |  |  |  | 341 |  |  |  | 1,653 |  |  |  | 2,607 |
Ending balance |  | $ | 1,430 |  |  | $ | 14,782 |  |  | $ | 66 |  |  | $ | 4,085 |  |  | $ | 509 |  |  | $ | 6,344 |  |  | $ | 824 |  |  | $ | 1,711 |  |  | $ | 6,050 |  |  | $ | 35,801 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Individually evaluated for impairment |  | $ | 212 |  |  | $ | 747 |  |  | $ | 0 |  |  | $ | 190 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 1,149 |
Collectively evaluated for impairment |  | $ | 1,218 |  |  | $ | 14,035 |  |  | $ | 66 |  |  | $ | 3,895 |  |  | $ | 509 |  |  | $ | 6,344 |  |  | $ | 824 |  |  | $ | 1,711 |  |  | $ | 6,050 |  |  | $ | 34,652 |
Loans |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Individually evaluated for impairment |  | $ | 5,938 |  |  | $ | 35,848 |  |  | $ | 0 |  |  | $ | 11,770 |  |  | $ | 0 |  |  | $ | 1,489 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 55,045 |
Collectively evaluated for impairment |  | $ | 62,337 |  |  | $ | 1,047,792 |  |  | $ | 6,242 |  |  | $ | 343,214 |  |  | $ | 55,412 |  |  | $ | 704,539 |  |  | $ | 89,467 |  |  | $ | 131,815 |  |  | $ | 435,436 |  |  | $ | 2,876,254 |

|  | December 31, 2016 |
(in thousands) |  | Commercial Construction |  |  | Commercial Secured by Real Estate |  |  | Equipment Lease Financing |  |  | Commercial Other |  |  | Real Estate Construction |  |  | Real Estate Mortgage |  |  | Home Equity |  |  | Consumer Direct |  |  | Consumer Indirect |  |  | Total |
Allowance for loan losses |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Beginning balance |  | $ | 2,199 |  |  | $ | 14,434 |  |  | $ | 79 |  |  | $ | 4,225 |  |  | $ | 550 |  |  | $ | 6,678 |  |  | $ | 839 |  |  | $ | 1,594 |  |  | $ | 5,496 |  |  | $ | 36,094 |
Provision charged to expense |  |  | (1,035 | ) |  |  | 1,220 |  |  |  | (37 | ) |  |  | 2,128 |  |  |  | 264 |  |  |  | 291 |  |  |  | (20 | ) |  |  | 912 |  |  |  | 4,149 |  |  |  | 7,872 |
Losses charged off |  |  | (316 | ) |  |  | (1,641 | ) |  |  | 0 |  |  |  | (2,136 | ) |  |  | (192 | ) |  |  | (1,043 | ) |  |  | (54 | ) |  |  | (1,236 | ) |  |  | (5,050 | ) |  |  | (11,668 | )
Recoveries |  |  | 36 |  |  |  | 178 |  |  |  | 0 |  |  |  | 439 |  |  |  | 7 |  |  |  | 101 |  |  |  | 9 |  |  |  | 615 |  |  |  | 2,250 |  |  |  | 3,635 |
Ending balance |  | $ | 884 |  |  | $ | 14,191 |  |  | $ | 42 |  |  | $ | 4,656 |  |  | $ | 629 |  |  | $ | 6,027 |  |  | $ | 774 |  |  | $ | 1,885 |  |  | $ | 6,845 |  |  | $ | 35,933 |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Individually evaluated for impairment |  | $ | 213 |  |  | $ | 1,035 |  |  | $ | 0 |  |  | $ | 65 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 1,313 |
Collectively evaluated for impairment |  | $ | 671 |  |  | $ | 13,156 |  |  | $ | 42 |  |  | $ | 4,591 |  |  | $ | 629 |  |  | $ | 6,027 |  |  | $ | 774 |  |  | $ | 1,885 |  |  | $ | 6,845 |  |  | $ | 34,620 |
Loans |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Ending balance: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Individually evaluated for impairment |  | $ | 5,609 |  |  | $ | 33,756 |  |  | $ | 0 |  |  | $ | 11,354 |  |  | $ | 0 |  |  | $ | 1,483 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 52,202 |
Collectively evaluated for impairment |  | $ | 61,389 |  |  | $ | 1,051,672 |  |  | $ | 5,512 |  |  | $ | 338,805 |  |  | $ | 57,966 |  |  | $ | 701,486 |  |  | $ | 91,511 |  |  | $ | 133,093 |  |  | $ | 444,735 |  |  | $ | 2,886,169 |

Note 6 – Other Real Estate Owned
Activity for other real estate owned was as follows:

|  | Three Months Ended |  |  | Nine Months Ended |
|  | September 30 |  |  | September 30 |
(in thousands) |  | 2017 |  |  | 2016 |  |  | 2017 |  |  | 2016 |
Beginning balance of other real estate owned |  | $ | 32,785 |  |  | $ | 37,740 |  |  | $ | 35,856 |  |  | $ | 40,674 |
New assets acquired |  |  | 2,722 |  |  |  | 1,008 |  |  |  | 4,303 |  |  |  | 4,300 |
Capitalized costs |  |  | 0 |  |  |  | 0 |  |  |  | 0 |  |  |  | 0 |
Fair value adjustments |  |  | (884 | ) |  |  | (408 | ) |  |  | (2,871 | ) |  |  | (632 | )
Sale of assets |  |  | (2,575 | ) |  |  | (675 | ) |  |  | (5,240 | ) |  |  | (6,677 | )
Ending balance of other real estate owned |  | $ | 32,048 |  |  | $ | 37,665 |  |  | $ | 32,048 |  |  | $ | 37,665 |

Foreclosed properties at September 30, 2017 were $32.0 million. Carrying costs and fair value adjustments associated with foreclosed properties were $1.3 million and $0.9 million, respectively, for the three months ended September 30, 2017 and 2016 and $4.1 million and $1.9 million, respectively, for the nine months ended September 30, 2017 and 2016.
The major classifications of foreclosed properties are shown in the following table:

(in thousands) |  | September 30 2017 |  |  | December 31 2016 |
1-4 family |  | $ | 5,117 |  |  | $ | 6,210 |
Agricultural/farmland |  |  | 68 |  |  |  | 93 |
Construction/land development/other |  |  | 16,620 |  |  |  | 20,778 |
Multifamily |  |  | 176 |  |  |  | 270 |
Non-farm/non-residential |  |  | 10,067 |  |  |  | 8,505 |
Total foreclosed properties |  | $ | 32,048 |  |  | $ | 35,856 |

Note 7 – Repurchase Agreements
We utilize securities sold under agreements to repurchase to facilitate the needs of our customers and provide additional funding to our balance sheet. Repurchase agreements are transactions whereby we offer to sell to a counterparty an undivided interest in an eligible security at an agreed upon purchase price, and which obligates CTBI to repurchase the security on an agreed upon date at an agreed upon repurchase price plus interest at an agreed upon rate. Securities sold under agreements to repurchase are recorded at the amount of cash received in connection with the transaction and are reflected in the accompanying consolidated balance sheets.
We monitor collateral levels on a continuous basis and maintain records of each transaction specifically describing the applicable security and the counterparty’s fractional interest in that security, and we segregate the security from its general assets in accordance with regulations governing custodial holdings of securities. The primary risk with our repurchase agreements is market risk associated with the securities securing the transactions, as we may be required to provide additional collateral based on fair value changes of the underlying securities. Securities pledged as collateral under repurchase agreements are maintained with our safekeeping agents. The carrying value of investment securities available-for-sale pledged as collateral under repurchase agreements totaled $296.8 million and $302.3 million at September 30, 2017 and December 31, 2016, respectively.
The remaining contractual maturity of the securities sold under agreements to repurchase by class of collateral pledged included in the accompanying consolidated balance sheets as of September 30, 2017 and December 31, 2016 is presented in the following tables:

|  | September 30, 2017 |
|  | Remaining Contractual Maturity of the Agreements |
(in thousands) |  | Overnight and Continuous |  |  | Up to 30 days |  |  | 30-90 days |  |  | Greater Than 90 days |  |  | Total |
Repurchase agreements and repurchase-to-maturity transactions: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
U.S. Treasury and government agencies |  | $ | 31,171 |  |  | $ | 56,126 |  |  | $ | 0 |  |  | $ | 26,488 |  |  | $ | 113,785 |
State and political subdivisions |  |  | 63,611 |  |  |  | 4,573 |  |  |  | 610 |  |  |  | 6,919 |  |  |  | 75,713 |
U.S. government sponsored agency mortgage-backed securities |  |  | 21,630 |  |  |  | 36,301 |  |  |  | 116 |  |  |  | 12,462 |  |  |  | 70,509 |
Total |  | $ | 116,412 |  |  | $ | 97,000 |  |  | $ | 726 |  |  | $ | 45,869 |  |  | $ | 260,007 |

|  | December 31, 2016 |
|  | Remaining Contractual Maturity of the Agreements |
(in thousands) |  | Overnight and Continuous |  |  | Up to 30 days |  |  | 30-90 days |  |  | Greater Than 90 days |  |  | Total |
Repurchase agreements and repurchase-to-maturity transactions: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
U.S. Treasury and government agencies |  | $ | 17,249 |  |  | $ | 0 |  |  | $ | 14,349 |  |  | $ | 73,076 |  |  | $ | 104,674 |
State and political subdivisions |  |  | 55,354 |  |  |  | 0 |  |  |  | 1,998 |  |  |  | 10,272 |  |  |  | 67,624 |
U.S. government sponsored agency mortgage-backed securities |  |  | 23,386 |  |  |  | 0 |  |  |  | 8,003 |  |  |  | 47,378 |  |  |  | 78,767 |
Total |  | $ | 95,989 |  |  | $ | 0 |  |  | $ | 24,350 |  |  | $ | 130,726 |  |  | $ | 251,065 |

Note 8 – Fair Market Value of Financial Assets and Liabilities
Fair Value Measurements
ASC 820, Fair Value Measurements, defines fair value, establishes a framework for measuring fair value in generally accepted accounting principles and expands disclosures about fair value measurements. ASC 820 applies whenever other standards require (or permit) assets or liabilities to be measured at fair value but does not expand the use of fair value in any new circumstances. Fair value measurements must maximize the use of observable inputs and minimize the use of unobservable inputs. In this standard, the FASB clarifies the principle that fair value should be based on the assumptions market participants would use when pricing the asset or liability. In support of this principle, ASC 820 establishes a fair value hierarchy that prioritizes the information used to develop those assumptions. The fair value hierarchy is as follows:
Level 1 Inputs – Quoted prices in active markets for identical assets or liabilities.
Level 2 Inputs – Inputs other than quoted prices included in Level 1 that are observable for the asset or liability, either directly or indirectly. These might include quoted prices for similar assets and liabilities in active markets, and inputs other than quoted prices that are observable for the asset or liability, such as interest rates and yield curves that are observable at commonly quoted intervals.
Level 3 Inputs – Unobservable inputs for determining the fair values of assets or liabilities that reflect an entity’s own assumptions about the assumptions that market participants would use in pricing the assets or liabilities.
Recurring Measurements
The following tables present the fair value measurements of assets recognized in the accompanying balance sheets measured at fair value on a recurring basis as of September 30, 2017 and December 31, 2016 and indicate the level within the fair value hierarchy of the valuation techniques.

|  |  |  |  | Fair Value Measurements at September 30, 2017 Using |
(in thousands) |  | Fair Value |  |  | Quoted Prices in Active Markets for Identical Assets (Level 1) |  |  | Significant Other Observable Inputs (Level 2) |  |  | Significant Unobservable Inputs (Level 3) |
Assets measured – recurring basis |  |  |  |  |  |  |  |  |  |  |  |
Available-for-sale securities: |  |  |  |  |  |  |  |  |  |  |  |
U.S. Treasury and government agencies |  | $ | 217,858 |  |  | $ | 65,093 |  |  | $ | 152,765 |  |  | $ | 0 |
State and political subdivisions |  |  | 136,657 |  |  |  | 0 |  |  |  | 136,657 |  |  |  | 0 |
U.S. government sponsored agency mortgage-backed securities |  |  | 223,998 |  |  |  | 0 |  |  |  | 223,998 |  |  |  | 0 |
CRA investment funds |  |  | 24,520 |  |  |  | 24,520 |  |  |  | 0 |  |  |  | 0 |
Mortgage servicing rights |  |  | 3,283 |  |  |  | 0 |  |  |  | 0 |  |  |  | 3,283 |

|  |  |  |  | Fair Value Measurements at December 31, 2016 Using |
(in thousands) |  | Fair Value |  |  | Quoted Prices in Active Markets for Identical Assets (Level 1) |  |  | Significant Other Observable Inputs (Level 2) |  |  | Significant Unobservable Inputs (Level 3) |
Assets measured – recurring basis |  |  |  |  |  |  |  |  |  |  |  |
Available-for-sale securities: |  |  |  |  |  |  |  |  |  |  |  |
U.S. Treasury and government agencies |  | $ | 222,464 |  |  | $ | 44,934 |  |  | $ | 177,530 |  |  | $ | 0 |
State and political subdivisions |  |  | 133,516 |  |  |  | 0 |  |  |  | 133,516 |  |  |  | 0 |
U.S. government sponsored agency mortgage-backed securities |  |  | 225,056 |  |  |  | 0 |  |  |  | 225,056 |  |  |  | 0 |
CRA investment funds |  |  | 24,358 |  |  |  | 24,358 |  |  |  | 0 |  |  |  | 0 |
Mortgage servicing rights |  |  | 3,433 |  |  |  | 0 |  |  |  | 0 |  |  |  | 3,433 |

Following is a description of the valuation methodologies and inputs used for assets measured at fair value on a recurring basis and recognized in the accompanying balance sheets, as well as the general classification of such assets pursuant to the valuation hierarchy. These valuation methodologies were applied to all of CTBI’s financial assets carried at fair value. CTBI had no liabilities measured and recorded at fair value as of September 30, 2017 and December 31, 2016. There have been no significant changes in the valuation techniques during the quarter or nine months ended September 30, 2017. For assets classified within Level 3 of the fair value hierarchy, the process used to develop the reported fair value is described below.
Available-for-Sale Securities
Securities classified as available-for-sale are reported at fair value on a recurring basis. U.S. Treasury and government agencies and CTBI’s CRA investment funds are classified as Level 1 of the valuation hierarchy where quoted market prices are available in the active market on which the individual securities are traded.
If quoted market prices are not available, CTBI obtains fair value measurements from an independent pricing service, such as Interactive Data, which utilizes pricing models to determine fair value measurement. CTBI reviews the pricing quarterly to verify the reasonableness of the pricing. The fair value measurements consider observable data that may include dealer quotes, market spreads, cash flows, the U.S. Treasury yield curve, live trading levels, trade execution data, market consensus prepayment speeds, credit information and the bond’s terms and conditions, among other factors. U.S. Treasury and government agencies, state and political subdivisions, and U.S. government sponsored agency mortgage-backed securities are classified as Level 2 inputs.
In certain cases where Level 1 or Level 2 inputs are not available, securities are classified within Level 3 of the hierarchy. Fair value determinations for Level 3 measurements are estimated on a quarterly basis where assumptions used are reviewed to ensure the estimated fair value complies with accounting standards generally accepted in the United States. As of September 30, 2017 and December 31, 2016, CTBI does not own any securities valued using Level 3 inputs.
Mortgage Servicing Rights
Mortgage servicing rights do not trade in an active, open market with readily observable prices. CTBI reports mortgage servicing rights at fair value on a recurring basis with subsequent remeasurement of MSRs based on change in fair value.
In determining fair value, CTBI utilizes the expertise of an independent third party. Accordingly, fair value is determined by the independent third party by utilizing assumptions about factors such as mortgage interest rates, discount rates, mortgage loan prepayment speeds, market trends and industry demand. Due to the nature of the valuation inputs, mortgage servicing rights are classified within Level 3 of the hierarchy. Fair value determinations for Level 3 measurements of mortgage servicing rights are tested for impairment on a quarterly basis where assumptions used are reviewed to ensure the estimated fair value complies with accounting standards generally accepted in the United States. See the table below for inputs and valuation techniques used for Level 3 mortgage servicing rights.
Transfers between Levels
There were no transfers between Levels 1, 2, and 3 as of September 30, 2017.
Level 3 Reconciliation
Following is a reconciliation of the beginning and ending balances of recurring fair value measurements recognized in the accompanying balance sheet using significant unobservable (Level 3) inputs for the three and nine months ended September 30, 2017 and 2016:

Mortgage Servicing Rights |  |  |  |  |  |
|  | Three Months Ended |  |  | Nine Months Ended |
|  | September 30 |  |  | September 30 |
(in thousands) |  | 2017 |  |  | 2016 |  |  | 2017 |  |  | 2016 |
Beginning balance |  | $ | 3,304 |  |  | $ | 2,797 |  |  | $ | 3,433 |  |  | $ | 3,236 |
Total recognized gains (losses) |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Included in net income |  |  | 5 |  |  |  | 118 |  |  |  | (73 | ) |  |  | (422 | )
Issues |  |  | 98 |  |  |  | 167 |  |  |  | 269 |  |  |  | 388 |
Settlements |  |  | (124 | ) |  |  | (118 | ) |  |  | (346 | ) |  |  | (238 | )
Ending balance |  | $ | 3,283 |  |  | $ | 2,964 |  |  | $ | 3,283 |  |  | $ | 2,964 |
Total gains (losses) for the period included in net income attributable to the change in unrealized gains or losses related to assets still held at the reporting date |  | $ | 5 |  |  | $ | 118 |  |  | $ | (73 | ) |  | $ | (422 | )

Realized and unrealized gains and losses for items reflected in the table above are included in net income in the consolidated statements of income as follows:

Noninterest Income |  |  |  |  |  |
|  | Three Months Ended |  |  | Nine Months Ended |
|  | September 30 |  |  | September 30 |
(in thousands) |  | 2017 |  |  | 2016 |  |  | 2017 |  |  | 2016 |
Total losses |  | $ | (119 | ) |  | $ | 0 |  |  | $ | (419 | ) |  | $ | (660 | )

Nonrecurring Measurements
The following tables present the fair value measurements of assets recognized in the accompanying balance sheets measured at fair value on a nonrecurring basis as of September 30, 2017 and December 31, 2016 and indicate the level within the fair value hierarchy of the valuation techniques.

|  |  |  |  | Fair Value Measurements at September 30, 2017 Using |
(in thousands) |  | Fair Value |  |  | Quoted Prices in Active Markets for Identical Assets (Level 1) |  |  | Significant Other Observable Inputs (Level 2) |  |  | Significant Unobservable Inputs (Level 3) |
Assets measured – nonrecurring basis |  |  |  |  |  |  |  |  |  |  |  |
Impaired loans (collateral dependent) |  | $ | 1,732 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 1,732 |
Other real estate/assets owned |  |  | 18,843 |  |  |  | 0 |  |  |  | 0 |  |  |  | 18,843 |

|  |  |  |  | Fair Value Measurements at December 31, 2016 Using |
(in thousands) |  | Fair Value |  |  | Quoted Prices in Active Markets for Identical Assets (Level 1) |  |  | Significant Other Observable Inputs (Level 2) |  |  | Significant Unobservable Inputs (Level 3) |
Assets measured – nonrecurring basis |  |  |  |  |  |  |  |  |  |  |  |
Impaired loans (collateral dependent) |  | $ | 5,506 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 5,506 |
Other real estate/assets owned |  |  | 4,388 |  |  |  | 0 |  |  |  | 0 |  |  |  | 4,388 |

Following is a description of the valuation methodologies and inputs used for assets measured at fair value on a nonrecurring basis and recognized in the accompanying balance sheet, as well as the general classification of such assets pursuant to the valuation hierarchy. For assets classified within Level 3 of the fair value hierarchy, the process used to develop the reported fair value is described below.
Impaired Loans (Collateral Dependent)
The estimated fair value of collateral-dependent impaired loans is based on the appraised fair value of the collateral, less estimated cost to sell. Collateral-dependent impaired loans are classified within Level 3 of the fair value hierarchy.
CTBI considers the appraisal or evaluation as the starting point for determining fair value and then considers other factors and events in the environment that may affect the fair value. Appraisals of the collateral underlying collateral-dependent loans are obtained when the loan is determined to be collateral-dependent and subsequently as deemed necessary by the Chief Credit Officer. Appraisals are reviewed for accuracy and consistency by the Chief Credit Officer. Appraisers are selected from the list of approved appraisers maintained by management. The appraised values are reduced by discounts to consider lack of marketability and estimated cost to sell if repayment or satisfaction of the loan is dependent on the sale of the collateral. These discounts and estimates are developed by the Chief Credit Officer by comparison to historical results.
Loans considered impaired under ASC 310-35, Impairment of a Loan, are loans for which, based on current information and events, it is probable that the creditor will be unable to collect all amounts due according to the contractual terms of the loan agreement. Impaired loans are subject to nonrecurring fair value adjustments to reflect subsequent (i) partial write-downs that are based on the observable market price or current appraised value of the collateral or (ii) the full charge-off of the loan carrying value. Quarter-to-date fair value adjustments on impaired loans disclosed above were $0.3 million for the quarters ended September 30, 2017, December 31, 2016, and September 30, 2016. Year-to-date fair value adjustments were $0.7 million for the nine months ended September 30, 2017, $0.6 million for the year ended December 31, 2016, and $0.6 million for the nine months ended September 30, 2016.
Other Real Estate Owned
In accordance with the provisions of ASC 360, Property, Plant, and Equipment, other real estate owned (OREO) is carried at the lower of fair value at acquisition date or current estimated fair value, less estimated cost to sell when the real estate is acquired. Estimated fair value of OREO is based on appraisals or evaluations. OREO is classified within Level 3 of the fair value hierarchy. Long-lived assets are subject to nonrecurring fair value adjustments to reflect subsequent partial write-downs that are based on the observable market price or current appraised value of the collateral. Quarter-to-date fair value adjustments on other real estate/assets owned were $0.9 million, $0.6 million, and $0.4 million for the quarters ended September 30, 2017, December 31, 2016, and September 30, 2016, respectively. Year-to-date adjustments were $2.9 million for the nine months ended September 30, 2017, $1.2 million for the year ended December 31, 2016, and $0.6 million for the nine months ended September 30, 2016.
Our policy for determining the frequency of periodic reviews is based upon consideration of the specific properties and the known or perceived market fluctuations in a particular market and is typically between 12 and 18 months but generally not more than 24 months. Appraisers are selected from the list of approved appraisers maintained by management.
Unobservable (Level 3) Inputs
The following tables present quantitative information about unobservable inputs used in recurring and nonrecurring Level 3 fair value measurements at September 30, 2017 and December 31, 2016.

(in thousands) |  | Quantitative Information about Level 3 Fair Value Measurements
|  | Fair Value at September 30, 2017 |  | Valuation Technique(s) | Unobservable Input |  | Range (Weighted Average)
Mortgage servicing rights |  | $ | 3,283 |  | Discount cash flows, computer pricing model | Constant prepayment rate |  |  | 7.0% - 29.5% (10.6%)
|  |  |  |  |  | Probability of default |  |  | 0.0% - 100.0% (3.3%)
|  |  |  |  |  | Discount rate |  |  | 10.0% - 11.5% (10.1%)
Impaired loans (collateral-dependent) |  | $ | 1,732 |  | Market comparable properties | Marketability discount |  |  | 10.0% - 89.0% (40.4%)
Other real estate/assets owned |  | $ | 18,843 |  | Market comparable properties | Comparability adjustments |  |  | 6.0% - 68.7% (16.3%)

(in thousands) |  | Quantitative Information about Level 3 Fair Value Measurements
|  | Fair Value at December 31, 2016 |  | Valuation Technique(s) | Unobservable Input |  | Range (Weighted Average)
Mortgage servicing rights |  | $ | 3,433 |  | Discount cash flows, computer pricing model | Constant prepayment rate |  |  | 7.0% - 27.0% (9.5%)
|  |  |  |  |  | Probability of default |  |  | 0.0% - 100.0% (3.0%)
|  |  |  |  |  | Discount rate |  |  | 10.0% - 11.5% (10.1%)
Impaired loans (collateral-dependent) |  | $ | 5,506 |  | Market comparable properties | Marketability discount |  |  | 0.0% - 100.0% (33.7%)
Other real estate/assets owned |  | $ | 4,388 |  | Market comparable properties | Comparability adjustments |  |  | 10.0% - 100.0% (14.9%)

Sensitivity of Significant Unobservable Inputs
The following is a discussion of the sensitivity of significant unobservable inputs, the interrelationships between those inputs and other unobservable inputs used in recurring fair value measurement and of how those inputs might magnify or mitigate the effect of changes in the unobservable inputs on the fair value measurement.
Mortgage Servicing Rights
Fair market value for mortgage servicing rights is derived based on unobservable inputs, such as prepayment speeds of the underlying loans generated using the Andrew Davidson Prepayment Model, FHLMC/FNMA guidelines, the weighted average life of the loan, the discount rate, the weighted average coupon, and the weighted average default rate. Significant increases (decreases) in either of those inputs in isolation would result in a significantly lower (higher) fair value measurement. Generally, a change in the assumption used for prepayment speeds is accompanied by a directionally opposite change in the assumption for interest rates.
Fair Value of Financial Instruments
The following table presents estimated fair value of CTBI’s financial instruments as of September 30, 2017 and indicates the level within the fair value hierarchy of the valuation techniques.

|  |  |  |  | Fair Value Measurements at September 30, 2017 Using |
(in thousands) |  | Carrying Amount |  |  | Quoted Prices in Active Markets for Identical Assets (Level 1) |  |  | Significant Other Observable Inputs (Level 2) |  |  | Significant Unobservable Inputs (Level 3) |
Financial assets: |  |  |  |  |  |  |  |  |  |  |  |
Cash and cash equivalents |  | $ | 166,416 |  |  | $ | 166,416 |  |  | $ | 0 |  |  | $ | 0 |
Certificates of deposit in other banks |  |  | 11,270 |  |  |  | 0 |  |  |  | 11,244 |  |  |  | 0 |
Securities available-for-sale |  |  | 603,033 |  |  |  | 89,613 |  |  |  | 513,420 |  |  |  | 0 |
Securities held-to-maturity |  |  | 858 |  |  |  | 0 |  |  |  | 858 |  |  |  | 0 |
Loans held for sale |  |  | 1,605 |  |  |  | 1,651 |  |  |  | 0 |  |  |  | 0 |
Loans, net |  |  | 3,077,030 |  |  |  | 0 |  |  |  | 0 |  |  |  | 3,057,809 |
Federal Home Loan Bank stock |  |  | 17,927 |  |  |  | 0 |  |  |  | 17,927 |  |  |  | 0 |
Federal Reserve Bank stock |  |  | 4,887 |  |  |  | 0 |  |  |  | 4,887 |  |  |  | 0 |
Accrued interest receivable |  |  | 12,920 |  |  |  | 0 |  |  |  | 12,920 |  |  |  | 0 |
Mortgage servicing rights |  |  | 3,283 |  |  |  | 0 |  |  |  | 0 |  |  |  | 3,283 |
Financial liabilities: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Deposits |  | $ | 3,200,366 |  |  | $ | 786,856 |  |  | $ | 2,410,741 |  |  | $ | 0 |
Repurchase agreements |  |  | 260,007 |  |  |  | 0 |  |  |  | 0 |  |  |  | 260,044 |
Federal funds purchased |  |  | 8,196 |  |  |  | 0 |  |  |  | 8,196 |  |  |  | 0 |
Advances from Federal Home Loan Bank |  |  | 50,869 |  |  |  | 0 |  |  |  | 50,870 |  |  |  | 0 |
Long-term debt |  |  | 59,341 |  |  |  | 0 |  |  |  | 0 |  |  |  | 49,073 |
Accrued interest payable |  |  | 2,771 |  |  |  | 0 |  |  |  | 2,771 |  |  |  | 0 |
Unrecognized financial instruments: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Letters of credit |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |
Commitments to extend credit |  |  | 0 |  |  |  | 0 |  |  |  | 0 |  |  |  | 0 |
Forward sale commitments |  |  | 0 |  |  |  | 0 |  |  |  | 0 |  |  |  | 0 |

The following table presents estimated fair value of CTBI’s financial instruments as of December 31, 2016 and indicates the level within the fair value hierarchy of the valuation techniques.

(in thousands) |  |  |  |  | Fair Value Measurements at December 31, 2016 Using |
|  | Carrying Amount |  |  | Quoted Prices in Active Markets for Identical Assets (Level 1) |  |  | Significant Other Observable Inputs (Level 2) |  |  | Significant Unobservable Inputs (Level 3) |
Financial assets: |  |  |  |  |  |  |  |  |  |  |  |
Cash and cash equivalents |  | $ | 144,716 |  |  | $ | 144,716 |  |  | $ | 0 |  |  | $ | 0 |
Certificates of deposit in other banks |  |  | 980 |  |  |  | 0 |  |  |  | 982 |  |  |  | 0 |
Securities available-for-sale |  |  | 605,394 |  |  |  | 69,292 |  |  |  | 536,102 |  |  |  | 0 |
Securities held-to-maturity |  |  | 866 |  |  |  | 0 |  |  |  | 867 |  |  |  | 0 |
Loans held for sale |  |  | 1,244 |  |  |  | 1,260 |  |  |  | 0 |  |  |  | 0 |
Loans, net |  |  | 2,902,438 |  |  |  | 0 |  |  |  | 0 |  |  |  | 2,882,348 |
Federal Home Loan Bank stock |  |  | 17,927 |  |  |  | 0 |  |  |  | 17,927 |  |  |  | 0 |
Federal Reserve Bank stock |  |  | 4,887 |  |  |  | 0 |  |  |  | 4,887 |  |  |  | 0 |
Accrued interest receivable |  |  | 11,922 |  |  |  | 0 |  |  |  | 11,922 |  |  |  | 0 |
Mortgage servicing rights |  |  | 3,433 |  |  |  | 0 |  |  |  | 0 |  |  |  | 3,433 |
Financial liabilities: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Deposits |  | $ | 3,081,308 |  |  | $ | 767,918 |  |  | $ | 2,321,690 |  |  | $ | 0 |
Repurchase agreements |  |  | 251,065 |  |  |  | 0 |  |  |  | 0 |  |  |  | 250,820 |
Federal funds purchased |  |  | 4,816 |  |  |  | 0 |  |  |  | 4,816 |  |  |  | 0 |
Advances from Federal Home Loan Bank |  |  | 944 |  |  |  | 0 |  |  |  | 1,009 |  |  |  | 0 |
Long-term debt |  |  | 61,341 |  |  |  | 0 |  |  |  | 0 |  |  |  | 49,073 |
Accrued interest payable |  |  | 1,200 |  |  |  | 0 |  |  |  | 1,200 |  |  |  | 0 |
Unrecognized financial instruments: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Letters of credit |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |  |  | $ | 0 |
Commitments to extend credit |  |  | 0 |  |  |  | 0 |  |  |  | 0 |  |  |  | 0 |
Forward sale commitments |  |  | 0 |  |  |  | 0 |  |  |  | 0 |  |  |  | 0 |

The following methods and assumptions were used to estimate the fair value of each class of financial instruments for which it is practicable to estimate that value:
Cash and cash equivalents – The carrying amount approximates fair value.
Certificates of deposit in other banks – Fair values are based on quoted market prices or dealer quotes for similar instruments.
Securities held-to-maturity – Fair values are based on quoted market prices, if available. If a quoted price is not available, fair value is estimated using quoted prices for similar securities. The fair value estimate is provided to management from a third party using modeling assumptions specific to each type of security that are reviewed and approved by management. Quarterly sampling of fair values provided by additional third parties supplement the fair value review process.
Loans held for sale – The fair value is predetermined at origination based on sale price.
Loans (net of the allowance for loan and lease losses) – The fair value of fixed rate loans and variable rate mortgage loans is estimated by discounting the future cash flows using current rates at which similar loans would be made to borrowers with similar credit ratings and for the same remaining maturities. For other variable rate loans, the carrying amount approximates fair value.
Federal Home Loan Bank stock – The carrying value of Federal Home Loan Bank stock approximates fair value based on the redemption provisions of the Federal Home Loan Bank.
Federal Reserve Bank stock – The carrying value of Federal Reserve Bank stock approximates fair value based on the redemption provisions of the Federal Reserve Bank.
Accrued interest receivable – The carrying amount approximates fair value.
Deposits – The fair value of fixed maturity time deposits is estimated by discounting the future cash flows using the rates currently offered for deposits of similar remaining maturities. For deposits including demand deposits, savings accounts, NOW accounts, and certain money market accounts, the carrying value approximates fair value.
Repurchase agreements – The fair value is estimated by discounting future cash flows using current rates.
Federal funds purchased – The carrying amount approximates fair value.
Advances from Federal Home Loan Bank – The fair value of these fixed-maturity advances is estimated by discounting future cash flows using rates currently offered for advances of similar remaining maturities.
Long-term debt – The fair value is estimated by discounting future cash flows using current rates.
Accrued interest payable – The carrying amount approximates fair value.
Commitments to originate loans, forward sale commitments, letters of credit, and lines of credit – The fair value of commitments to originate loans is estimated using the fees currently charged to enter into similar agreements, taking into account the remaining terms of the agreements and the present creditworthiness of the counterparties. For fixed-rate loan commitments, fair value also considers the difference between current levels of interest rates and the committed rates. The fair value of forward sale commitments is estimated based on current market prices for loans of similar terms and credit quality. The fair values of letters of credit and lines of credit are based on fees currently charged for similar agreements or on the estimated cost to terminate or otherwise settle the obligations with the counterparties at the reporting date. The fair values of these commitments are not material.
Note 9 – Earnings Per Share
The following table sets forth the computation of basic and diluted earnings per share:

|  | Three Months Ended |  |  | Nine Months Ended |
|  | September 30 |  |  | September 30 |
(in thousands except per share data) |  | 2017 |  |  | 2016 |  |  | 2017 |  |  | 2016 |
Numerator: |  |  |  |  |  |  |  |  |  |  |  |
Net income |  | $ | 13,763 |  |  | $ | 12,312 |  |  | $ | 36,581 |  |  | $ | 35,480 |
Denominator: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Basic earnings per share: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Weighted average shares |  |  | 17,633 |  |  |  | 17,554 |  |  |  | 17,625 |  |  |  | 17,532 |
Diluted earnings per share: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Effect of dilutive stock options and restricted stock grants |  |  | 20 |  |  |  | 15 |  |  |  | 20 |  |  |  | 16 |
Adjusted weighted average shares |  |  | 17,653 |  |  |  | 17,569 |  |  |  | 17,645 |  |  |  | 17,548 |
Earnings per share: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Basic earnings per share |  | $ | 0.78 |  |  | $ | 0.70 |  |  | $ | 2.08 |  |  | $ | 2.02 |
Diluted earnings per share |  |  | 0.78 |  |  |  | 0.70 |  |  |  | 2.07 |  |  |  | 2.02 |

There were no options to purchase common shares that were excluded from the diluted calculations above for the three and nine months ended September 30, 2017. In addition to in-the-money stock options, unvested restricted stock grants were also used in the calculation of diluted earnings per share based on the treasury method. There were no options to purchase common shares that were excluded from the diluted calculations for the three months ended September 30, 2016. Options to purchase 15,730 common shares at a weighted average price of $35.409 were excluded from the diluted calculations above for the nine months ended September 30, 2016, because the exercise prices on the options were greater than the average market price for the period.
Note 10 – Accumulated Other Comprehensive Income
Unrealized gains on AFS securities
Amounts reclassified from accumulated other comprehensive income (AOCI) and the affected line items in the statements of income during the three and nine months ended September 30, 2017 and 2016 were:

|  | Amounts Reclassified from AOCI |
(in thousands) |  | Three Months Ended September 30 |  |  | Nine Months Ended September 30 |
| 2017 |  |  | 2016 |  |  | 2017 |  |  | 2016 |
Affected line item in the statements of income |  |  |  |  |  |  |  |  |  |  |  |
Securities gains |  | $ | 48 |  |  | $ | 458 |  |  | $ | 58 |  |  | $ | 522 |
Tax expense |  |  | 17 |  |  |  | 160 |  |  |  | 20 |  |  |  | 183 |
Total reclassifications out of AOCI |  | $ | 31 |  |  | $ | 298 |  |  | $ | 38 |  |  | $ | 339 |

Note 11 – Commitments and Contingencies
CTB will be required to make certain customer reimbursements related to two deposit add-on products. As previously discussed in CTBI’s most recent Form 10-K and Form 10-Q, management established a related accrual in 2014, which was not considered material. The time period and amount of the reimbursements have not yet been determined; therefore, the actual amount may materially vary from the amount management has evaluated as most likely at September 30, 2017.

Item 2. Management’s Discussion and Analysis of Financial Condition and
Results of Operations
Overview
The following Management’s Discussion and Analysis of Financial Condition and Results of Operations (“MD&A”) is intended to help the reader understand Community Trust Bancorp, Inc., our operations, and our present business environment. The MD&A is provided as a supplement to – and should be read in conjunction with – our condensed consolidated financial statements and the accompanying notes contained in this quarterly report. The MD&A includes the following sections:
v Our Business
v Results of Operations and Financial Condition
v Dividends
v Liquidity and Market Risk
v Interest Rate Risk
v Capital Resources
v Impact of Inflation, Changing Prices, and Economic Conditions
v Stock Repurchase Program
v Critical Accounting Policies and Estimates
Our Business
Community Trust Bancorp, Inc. (“CTBI”) is a bank holding company headquartered in Pikeville, Kentucky. Currently, we own one commercial bank, Community Trust Bank, Inc. (“CTB”) and one trust company, Community Trust and Investment Company, Inc. Through our subsidiaries, we have eighty banking locations in eastern, northeastern, central, and south central Kentucky, southern West Virginia, and northeastern Tennessee, four trust offices across Kentucky, and one trust office in northeastern Tennessee. At September 30, 2017, we had total consolidated assets of $4.1 billion and total consolidated deposits, including repurchase agreements, of $3.5 billion. Total shareholders’ equity at September 30, 2017 was $522.9 million. Trust assets under management, which are excluded from CTBI’s total consolidated assets, at September 30, 2017, were $2.2 billion. Trust assets under management include CTB’s investment portfolio totaling $0.6 billion.
Through its subsidiaries, CTBI engages in a wide range of commercial and personal banking and trust and wealth management activities, which include accepting time and demand deposits; making secured and unsecured loans to corporations, individuals and others; providing cash management services to corporate and individual customers; issuing letters of credit; renting safe deposit boxes; and providing funds transfer services. The lending activities of CTB include making commercial, construction, mortgage, and personal loans. Lease-financing, lines of credit, revolving lines of credit, term loans, and other specialized loans, including asset-based financing, are also available. Our corporate subsidiaries act as trustees of personal trusts, as executors of estates, as trustees for employee benefit trusts, as paying agents for bond and stock issues, as investment agent, as depositories for securities, and as providers of full service brokerage and insurance services. For further information, see Item 1 of our annual report on Form 10-K for the year ended December 31, 2016.
Results of Operations and Financial Condition
For the quarter ended September 30, 2017, we reported record earnings of $13.8 million, or $0.78 per basic share, compared to $11.5 million, or $0.65 per basic share, earned during the second quarter 2017 and $12.3 million, or $0.70 per basic share, earned during the third quarter 2016. Earnings for the nine months ended September 30, 2017 were $36.6 million, or $2.08 per basic share, compared to $35.5 million, or $2.02 per basic share, for the nine months ended September 30, 2016.
Quarterly Highlights

v | Net interest income for the quarter of $35.0 million was an increase of $0.7 million, or 2.1%, from second quarter 2017 and $1.7 million, or 5.2%, from prior year third quarter.

v | Provision for loan losses for the quarter ended September 30, 2017 decreased $2.1 million from prior quarter and $1.5 million from prior year same quarter. The decrease was the result of sustained improvement in the 12 quarter rolling average core portfolio metrics utilized in our allowance for loan losses model. While quarter over quarter fluctuations occur, management focuses on longer term trends as an indication of overall credit quality. The reduction resulted in a three basis point decrease in our loan loss reserve from 1.20% to 1.17% of total loans.

v | Our loan portfolio increased $26.1 million, an annualized 3.4%, during the quarter and $175.1 million, or an annualized 8.0%, from December 31, 2016.

v | Net loan charge-offs for the quarter ended September 30, 2017 were $1.4 million, or 0.18% of average loans annualized, compared to $1.3 million, or 0.18%, experienced for the second quarter 2017 and $2.1 million, or 0.28%, for the third quarter 2016.

v | Nonperforming loans at $30.0 million increased $2.0 million from June 30, 2017 and $2.6 million from December 31, 2016. Nonperforming assets at $62.2 million increased $1.5 million from June 30, 2017, but decreased $1.2 million from December 31, 2016.

v | Deposits, including repurchase agreements, increased $97.6 million during the quarter and $128.0 million from December 31, 2016. Deposit growth during the quarter included $82.3 million in wholesale brokered deposits.

v | Noninterest income for the quarter ended September 30, 2017 of $12.2 million was a decrease of $0.1 million, or 0.9%, from prior quarter and $1.0 million, or 7.5%, from prior year same quarter. The decrease from prior quarter was the result of the gain on the repurchase of trust preferred securities during the second quarter, along with a decrease in trust revenue. This decrease was partially offset by increases in gains on sales of loans and deposit service charges. The decrease from same quarter last year was the result of decreases in gains on sales of loans, deposit service charges, loan related fees, and securities gains.

v | Noninterest expense for the quarter ended September 30, 2017 of $26.9 million decreased $0.6 million, or 2.3%, from prior quarter, but increased $0.2 million, or 0.9%, from prior year same quarter. The variance in noninterest expense for the quarter was due to a decrease in net other real estate owned expense from prior quarter and an increase in net other real estate owned expense from prior year same quarter.

Income Statement Review

(dollars in thousands) |  |  |  |  |  |  |  | Change 2017 vs. 2016 |
Nine Months Ended September 30 |  | 2017 |  |  | 2016 |  |  | Amount |  |  | Percent |
Net interest income |  | $ | 102,300 |  |  | $ | 99,610 |  |  | $ | 2,690 |  |  |  | 2.7 | %
Provision for loan losses |  |  | 4,659 |  |  |  | 5,829 |  |  |  | (1,170 | ) |  |  | (20.1 | )
Noninterest income |  |  | 36,092 |  |  |  | 35,926 |  |  |  | 166 |  |  |  | 0.5 |
Noninterest expense |  |  | 82,142 |  |  |  | 80,121 |  |  |  | 2,021 |  |  |  | 2.5 |
Income taxes |  |  | 15,010 |  |  |  | 14,106 |  |  |  | 904 |  |  |  | 6.4 |
Net income |  | $ | 36,581 |  |  | $ | 35,480 |  |  | $ | 1,101 |  |  |  | 3.1 | %
Average earning assets |  | $ | 3,775,572 |  |  | $ | 3,640,043 |  |  | $ | 135,529 |  |  |  | 3.7 | %
Yield on average earnings assets |  |  | 4.13 | % |  |  | 4.08 | % |  |  | 0.05 | % |  |  | 1.2 | %
Cost of interest bearing funds |  |  | 0.63 | % |  |  | 0.51 | % |  |  | 0.12 | % |  |  | 23.3 | %
Net interest margin |  |  | 3.68 | % |  |  | 3.71 | % |  |  | (0.03 | )% |  |  | (1.0 | )%

Net Interest Income
Net interest income for the quarter of $35.0 million was an increase of $0.7 million, or 2.1%, from second quarter 2017 and $1.7 million, or 5.2%, from prior year third quarter. Our net interest margin at 3.67% was down one basis point from prior quarter but up one basis point from prior year same quarter, while our average earnings assets increased $55.5 million and $173.4 million, respectively, during those same periods. Our yield on average earning assets increased 4 basis points from prior quarter and 13 basis points from prior year same quarter, and our cost of funds increased 9 basis points from prior quarter and 18 basis points from prior year same quarter. Our ratio of average loans to deposits, including repurchase agreements, was 91.1% for the quarter ended September 30, 2017 compared to 89.9% for the quarter ended June 30, 2017 and 88.3% for the quarter ended September 30, 2016. Net interest income for the nine months ended September 30, 2017 increased $2.7 million, or 2.7%, from September 30, 2016.
Provision for Loan Losses
The provision for loan losses that was added to the allowance for the third quarter 2017 was $0.7 million compared to $2.8 million for the quarter ended June 30, 2017 and $2.2 million for the quarter ended September 30, 2016. Year-to-date allocations to the reserve were $4.7 million at September 30, 2017 compared to $5.8 million at September 30, 2016. This provision represented a charge against current earnings in order to maintain the allowance at an appropriate level determined using the accounting estimates described in the Critical Accounting Policies and Estimates section. Our reserve coverage (allowance for loan and lease loss reserve to nonperforming loans) at September 30, 2017 was 121.2% compared to 132.6% at June 30, 2017 and 126.5% at September 30, 2016. Our loan loss reserve as a percentage of total loans outstanding was reduced to 1.17% at September 30, 2017 from the 1.20% at June 30, 2017 and the 1.22% at September 30, 2016.
Noninterest Income
Noninterest income for the quarter ended September 30, 2017 of $12.2 million was a decrease of $0.1 million, or 0.9%, from prior quarter and $1.0 million, or 7.5%, from prior year same quarter. The decrease from prior quarter was the result of the $0.6 million gain on the repurchase of $2.0 million in trust preferred securities during the second quarter, along with a $0.1 million decrease in trust revenue. This decrease was partially offset by increases in gains on sales of loans ($0.1 million) and deposit service charges ($0.3 million). The decrease from same quarter last year was the result of decreases in gains on sales of loans ($0.2 million), deposit service charges ($0.1 million), loan related fees ($0.5 million), and securities gains ($0.4 million). Noninterest income for the nine months ended September 30, 2017 increased $0.2 million, or 0.5%, compared to the nine months ended September 30, 2016. This increase was also the result of the $0.6 million gain during the second quarter mentioned above, along with a $0.7 million increase in trust revenue, partially offset by decreases in gains on sales of loans ($0.5 million) and securities gains ($0.5 million).
Noninterest Expense
Noninterest expense for the quarter ended September 30, 2017 of $26.9 million decreased $0.6 million, or 2.3%, from prior quarter, but increased $0.2 million, or 0.9%, from prior year same quarter. The variance in noninterest expense for the quarter was due to a $0.5 million decrease in net other real estate owned expense from prior quarter and a $0.4 million increase in net other real owned expense from prior year same quarter. The increase in net other real estate owned expense from prior year same quarter was partially offset by a decreases in personnel expense ($0.1 million) and FDIC insurance premiums ($0.2 million). Noninterest expense for the nine months ended September 30, 2017 increased $2.0 million, or 2.5%, compared to the nine months ended September 30, 2016, as a result of a $2.2 million increase in net other real estate owned expense. Personnel expense for the nine months ended September 30, 2017 increased $0.4 million from prior year with a $0.8 million increase in salaries and a $0.3 million increase in the cost of group medical and life insurance, partially offset by a $0.4 million decrease in bonuses and incentives. FDIC insurance premiums decreased $0.7 million from prior year.
Balance Sheet Review
CTBI’s total assets at $4.1 billion increased $54.8 million, or an annualized 5.3%, from June 30, 2017 and $203.7 million, or an annualized 6.9%, from December 31, 2016. Loans outstanding at September 30, 2017 were $3.1 billion, increasing $26.1 million, or an annualized 3.4%, from June 30, 2017 and $175.1 million, or an annualized 8.0%, from December 31, 2016. We experienced an increase during the quarter of $6.2 million in the commercial loan portfolio, $12.7 million in the residential loan portfolio, $4.8 million in the indirect loan portfolio, and $2.4 million in the consumer direct loan portfolio. CTBI’s investment portfolio decreased $7.3 million, or an annualized 4.8%, from June 30, 2017 and $2.4 million, or an annualized 0.5%, from December 31, 2016. Deposits in other banks increased $31.4 million from prior quarter and $21.9 million from December 31, 2016. Deposits, including repurchase agreements, at $3.5 billion increased $97.6 million, or an annualized 11.5%, from June 30, 2017 and $128.0 million, or an annualized 5.1%, from December 31, 2016. Deposit growth during the quarter included $82.3 million in wholesale brokered deposits.
Shareholders’ equity at September 30, 2017 was $522.9 million compared to $514.9 million at June 30, 2017 and $500.6 million at December 31, 2016. Our tangible common equity/tangible assets ratio at September 30, 2017 was 11.24%.
Loans

(in thousands) |  | September 30, 2017 |
Loan Category |  | Balance |  |  | Variance from Prior Year-End |  |  | YTD Net Charge-Offs |  |  | Nonperforming |  |  | ALLL |
Commercial: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Construction |  | $ | 74,282 |  |  |  | 10.9 | % |  | $ | 27 |  |  | $ | 1,311 |  |  | $ | 672 |
Secured by real estate |  |  | 1,197,604 |  |  |  | 10.3 |  |  |  | (711 | ) |  |  | 9,397 |  |  |  | 15,102 |
Equipment lease financing |  |  | 3,290 |  |  |  | (40.3 | ) |  |  | 0 |  |  |  | 0 |  |  |  | 19 |
Commercial other |  |  | 339,337 |  |  |  | (3.1 | ) |  |  | (923 | ) |  |  | 1,377 |  |  |  | 4,962 |
Total commercial |  |  | 1,614,513 |  |  |  | 7.1 |  |  |  | (1,607 | ) |  |  | 12,085 |  |  |  | 20,755 |
Residential: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Real estate construction |  |  | 64,441 |  |  |  | 11.2 |  |  |  | 1 |  |  |  | 1,217 |  |  |  | 630 |
Real estate mortgage |  |  | 712,237 |  |  |  | 1.3 |  |  |  | (242 | ) |  |  | 15,304 |  |  |  | 5,786 |
Home equity |  |  | 96,755 |  |  |  | 5.7 |  |  |  | (54 | ) |  |  | 894 |  |  |  | 807 |
Total residential |  |  | 873,433 |  |  |  | 2.5 |  |  |  | (295 | ) |  |  | 17,415 |  |  |  | 7,223 |
Consumer: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Consumer direct |  |  | 137,657 |  |  |  | 3.4 |  |  |  | (271 | ) |  |  | 156 |  |  |  | 1,857 |
Consumer indirect |  |  | 487,818 |  |  |  | 9.7 |  |  |  | (2,028 | ) |  |  | 364 |  |  |  | 6,556 |
Total consumer |  |  | 625,475 |  |  |  | 8.2 |  |  |  | (2,299 | ) |  |  | 520 |  |  |  | 8,413 |
Total loans |  | $ | 3,113,421 |  |  |  | 6.0 | % |  | $ | (4,201 | ) |  | $ | 30,020 |  |  | $ | 36,391 |

Asset Quality
CTBI’s total nonperforming loans were $30.0 million at September 30, 2017, a 7.2% increase from the $28.0 million at June 30, 2017 and a 9.3% increase from the $27.5 million at December 31, 2016. Loans 90+ days past due increased $1.9 million during the quarter but decreased $0.6 million from December 31, 2016. Nonaccrual loans increased $0.1 million during the quarter and $3.2 million from December 31, 2016. Loans 30-89 days past due and accruing interest at $17.4 million was an increase of $2.2 million from June 30, 2017 and $1.0 million from December 31, 2016. Our loan portfolio management processes focus on the immediate identification, management, and resolution of problem loans to maximize recovery and minimize loss. Our loan risk management processes include weekly delinquent loan review meetings at the market levels and monthly delinquent loan review meetings involving senior corporate management to review all nonaccrual loans and loans 30 days or more past due. Any activity regarding a criticized/classified loan (i.e. problem loan) must be approved by CTB’s Watch List Asset Committee (i.e. Problem Loan Committee). CTB’s Watch List Asset Committee also meets on a quarterly basis and reviews every criticized/classified loan of $100,000 or greater. We also have a Loan Review Department that reviews every market within CTB annually and performs extensive testing of the loan portfolio to assure the accuracy of loan grades and classifications for delinquency, troubled debt restructuring, impaired status, impairment, nonaccrual status, and adequate loan loss reserves.
Impaired loans, loans not expected to meet contractual principal and interest payments other than insignificant delays, at September 30, 2017 totaled $46.2 million, a $4.5 million decrease from the $50.7 million at June 30, 2017 and a $6.0 million decrease from the $52.2 million at December 31, 2016. At September 30, 2017, CTBI had $29.2 million in commercial loans secured by real estate, $4.8 million in commercial real estate construction loans, $10.1 million in commercial other loans, $0.9 million in real estate consumer construction loans, and $1.2 million in real estate mortgage loans that were modified in troubled debt restructurings and impaired. Management evaluates all impaired loans for the amount of impairment, if any, and records a direct charge-off or provides specific reserves when necessary.
For further information regarding nonperforming and impaired loans, see note 4 to the condensed consolidated financial statements.
CTBI generally does not offer high risk loans such as option ARM products, high loan to value ratio mortgages, interest-only loans, loans with initial teaser rates, or loans with negative amortizations, and therefore, CTBI would have no significant exposure to these products.
Net loan charge-offs for the quarter ended September 30, 2017 were $1.4 million, or 0.18% of average loans annualized, compared to $1.3 million, or 0.18%, experienced for the second quarter 2017 and $2.1 million, or 0.28%, for the third quarter 2016. Of the net charge-offs for the quarter, $0.4 million were in commercial loans, $0.7 million were in indirect auto loans, $0.2 million were in residential loans, and $0.1 million were in consumer direct loans. Net loan charge-offs for the nine months ended September 30, 2017 were $4.2 million, or 0.19% of average loans, compared to $6.1 million, or 0.28% of average loans, experienced for the nine months ended September 30, 2016.
Foreclosed properties at September 30, 2017 totaled $32.0 million compared to $32.6 million at June 30, 2017 and $35.9 million at December 31, 2016. Sales of foreclosed properties for the nine months ended September 30, 2017 totaled $5.1 million while new foreclosed properties totaled $4.3 million. At September 30, 2017, the book value of properties under contracts to sell was $2.6 million; however, the closings had not occurred at quarter-end.
When foreclosed properties are acquired, appraisals are obtained and the properties are booked at the current fair market value less expected sales costs. Additionally, periodic updated appraisals are obtained on unsold foreclosed properties. When an updated appraisal reflects a fair market value below the current book value, a charge is booked to current earnings to reduce the property to its new fair market value less expected sales costs. Charges to earnings in the third quarter 2017 to reflect the decrease in current fair market values of foreclosed properties totaled $0.9 million. There were thirteen properties reappraised during the third quarter 2017. Of these, six properties were written down by a total of $0.1 million. Internal evaluations during the quarter resulted in additional charges of $0.7 million in fair value adjustments. Charges during the quarters ended June 30, 2017 and September 30, 2016 were $1.4 million and $0.4 million, respectively. Year-to-date charges as of September 30, 2017 were $2.9 million compared to $0.6 million for the nine months ended September 30, 2016. Our policy for determining the frequency of periodic reviews is based upon consideration of the specific properties and the known or perceived market fluctuations in a particular market and is typically between 12 and 18 months but generally not more than 24 months. Substantially all of our OREO properties have been reappraised within the past 18 months. Management anticipates that our foreclosed properties will remain elevated as we work through current market conditions.
The appraisal aging analysis of foreclosed properties, as well as the holding period, at September 30, 2017 is shown below:

(in thousands) |  |  |
Appraisal Aging Analysis |  | Holding Period Analysis |
Days Since Last Appraisal |  | Current Book Value |  | Holding Period |  | Current Book Value |
Up to 3 months |  | $ | 4,432 |  | Less than one year |  | $ | 4,319 |
3 to 6 months |  |  | 16,777 |  | 1 to 2 years |  |  | 8,376 |
6 to 9 months |  |  | 4,944 |  | 2 to 3 years |  |  | 2,734 |
9 to 12 months |  |  | 3,145 |  | 3 to 4 years |  |  | 1,762 |
12 to 18 months |  |  | 2,644 |  | 4 to 5 years |  |  | 529 |
18 to 24 months |  |  | 66 |  | 5 to 7 years* |  |  | 10,303 |
Over 24 months |  |  | 40 |  | 8 to 9 years* |  |  | 4,025 |
Total |  | $ | 32,048 |  | Total |  | $ | 32,048 |

*Regulatory approval is required and has been obtained to hold these properties beyond the initial period of 5 years. Additional approval may be required to continue to hold these properties should they not be liquidated during the extension period, which is typically one year. While we have previously received regulatory approval to continue to hold foreclosed properties for over five years, to the extent such approval is not obtained in the future with respect to a foreclosed property, we might be forced to liquidate such property at a price less than its appraised value.
Dividends
The following schedule shows the quarterly cash dividends paid for the past six quarters:

Pay Date | Record Date |  | Amount Per Share |
October 1, 2017 | September 15, 2017 |  | $ | 0.33 |
July 1, 2017 | June 15, 2017 |  | $ | 0.32 |
April 1, 2017 | March 15, 2017 |  | $ | 0.32 |
January 1, 2017 | December 15, 2016 |  | $ | 0.32 |
October 1, 2016 | September 15, 2016 |  | $ | 0.32 |
July 1, 2016 | June 15, 2016 |  | $ | 0.31 |

Liquidity and Market Risk
The objective of CTBI’s Asset/Liability management function is to maintain consistent growth in net interest income within our policy limits. This objective is accomplished through management of our consolidated balance sheet composition, liquidity, and interest rate risk exposures arising from changing economic conditions, interest rates, and customer preferences. The goal of liquidity management is to provide adequate funds to meet changes in loan and lease demand or deposit withdrawals. This is accomplished by maintaining liquid assets in the form of cash and cash equivalents and investment securities, sufficient unused borrowing capacity, and growth in core deposits and wholesale funding (including the use of wholesale brokered deposits). As of September 30, 2017, we had approximately $166.4 million in cash and cash equivalents and approximately $603.0 million in securities valued at estimated fair value designated as available-for-sale and available to meet liquidity needs on a continuing basis compared to $144.7 million and $605.4 million at December 31, 2016. Additional asset-driven liquidity is provided by the remainder of the securities portfolio and the repayment of loans. In addition to core deposit funding, we also have a variety of other short-term and long-term funding sources available. As of September 30, 2017, we had wholesale brokered deposits outstanding of $82.3 million with one, two, and three-year maturities and a weighted average maturity of 1.97 years. We also rely on Federal Home Loan Bank advances for both liquidity and management of our asset/liability position. Federal Home Loan Bank advances were $50.9 million at September 30, 2017 compared to $0.9 million at December 31, 2016. As of September 30, 2017, we had a $314.7 million available borrowing position with the Federal Home Loan Bank compared to $295.8 million at December 31, 2016. We generally rely upon net inflows of cash from financing activities, supplemented by net inflows of cash from operating activities, to provide cash for our investing activities. However, during the nine months ended September 30, 2017, our loan production has outpaced internal deposit growth by $46.6 million; therefore, management determined that it was appropriate to fund this growth with longer term brokered deposits instead of shorter term Federal Home Loan Bank advances. As is typical of many financial institutions, significant financing activities include deposit gathering, use of short-term borrowing facilities such as repurchase agreements and federal funds purchased, use of wholesale brokered deposits, and issuance of long-term debt. At September 30, 2017 and December 31, 2016, we had $57 million in lines of credit with various correspondent banks available to meet any future cash needs. Our primary investing activities include purchases of securities and loan originations. We do not rely on any one source of liquidity and manage availability in response to changing consolidated balance sheet needs. Included in our cash and cash equivalents at September 30, 2017 were federal funds sold of $10.5 million compared to $0.5 million at December 31, 2016, and deposits with the Federal Reserve were $104.0 million compared to $93.4 million at December 31, 2016. Additionally, we project cash flows from our investment portfolio to generate additional liquidity over the next 90 days.
The investment portfolio consists of investment grade short-term issues suitable for bank investments. The majority of the investment portfolio is in U.S. government and government sponsored agency issuances. At September 30, 2017, available-for-sale (“AFS”) securities comprised substantially all of the total investment portfolio, and the AFS portfolio was approximately 115% of equity capital. Ninety-two percent of the pledge eligible portfolio was pledged.
Interest Rate Risk
We consider interest rate risk one of our most significant market risks. Interest rate risk is the exposure to adverse changes in net interest income due to changes in interest rates. Consistency of our net interest revenue is largely dependent upon the effective management of interest rate risk. We employ a variety of measurement techniques to identify and manage our interest rate risk including the use of an earnings simulation model to analyze net interest income sensitivity to changing interest rates. The model is based on actual cash flows and repricing characteristics for on and off-balance sheet instruments and incorporates market-based assumptions regarding the effect of changing interest rates on the prepayment rates of certain assets and liabilities. Assumptions based on the historical behavior of deposit rates and balances in relation to changes in interest rates are also incorporated into the model. These assumptions are inherently uncertain, and as a result, the model cannot precisely measure net interest income or precisely predict the impact of fluctuations in interest rates on net interest income. Actual results will differ from simulated results due to timing, magnitude, and frequency of interest rate changes as well as changes in market conditions and management strategies.
CTBI’s Asset/Liability Management Committee (ALCO), which includes executive and senior management representatives and reports to the Board of Directors, monitors and manages interest rate risk within Board-approved policy limits. Our current exposure to interest rate risks is determined by measuring the anticipated change in net interest income spread evenly over the twelve-month period.
Capital Resources
Shareholders’ equity was $522.9 million at September 30, 2017 and $500.6 million at December 31, 2016. CTBI’s annualized dividend yield to shareholders as of September 30, 2017 was 2.84%. Our primary source of capital growth is the retention of earnings. Cash dividends were $0.97 per share and $0.94 per share for the nine months ended September 30, 2017 and 2016, respectively. We retained 53.4% of our earnings for the first nine months of 2017 compared to 53.5% for the first nine months of 2016.
On July 2, 2013, the Federal Reserve approved final rules that substantially amend the regulatory risk-based capital rules applicable to CTBI and CTB. The FDIC subsequently approved these rules. The final rules implement the “Basel III” regulatory capital reforms and changes required by the Dodd-Frank Act.
The rules include new risk-based capital and leverage ratios, which are being phased in from 2015 to 2019, and refine the definition of what constitutes “capital” for purposes of calculating those ratios. The new minimum capital level requirements applicable to CTBI and CTB under the final rules are: (i) a new common equity Tier 1 capital ratio of 4.5%; (ii) a Tier 1 capital ratio of 6% (increased from 4%); (iii) a total capital ratio of 8% (unchanged from previous rules); and (iv) a Tier 1 leverage ratio of 4% for all institutions. The final rules also establish a “capital conservation buffer” above the new regulatory minimum capital requirements, which must consist entirely of common equity Tier 1 capital. The capital conservation buffer began to be phased in on January 1, 2016 at 0.625% of risk-weighted assets and will increase by 0.625% annually until fully implemented in January 2019. An institution is subject to limitations on certain activities including payment of dividends, share repurchases, and discretionary bonuses to executive officers if its capital level is below the capital conservation buffer amount.
The final rules also implement revisions and clarifications consistent with Basel III regarding the various components of Tier 1 capital, including common equity, unrealized gains and losses, as well as certain instruments that will no longer qualify as Tier 1 capital, some of which will be phased out over time. However, the final rules provide that small depository institution holding companies with less than $15 billion in total assets as of December 31, 2009 (which includes CTBI) will be able to permanently include non-qualifying instruments that were issued and included in Tier 1 or Tier 2 capital prior to May 19, 2010 in additional Tier 1 or Tier 2 capital until they redeem such instruments or until the instruments mature.
The final rules also contain revisions to the prompt corrective action framework, which is designed to place restrictions on insured depository institutions, including CTB, if their capital levels begin to show signs of weakness. These revisions took effect January 1, 2015. Under the prompt corrective action requirements, which are designed to complement the capital conservation buffer, insured depository institutions are required to meet the following increased capital level requirements in order to qualify as “well capitalized:” (i) a common equity Tier 1 capital ratio of 6.5%; (ii) a Tier 1 capital ratio of 8% (increased from 6%); (iii) a total capital ratio of 10% (unchanged from previous rules); and (iv) a Tier 1 leverage ratio of 5% (unchanged from previous rules).
The final rules set forth certain changes for the calculation of risk-weighted assets, which we were required to utilize beginning January 1, 2015. The standardized approach final rule utilizes an increased number of credit risk exposure categories and risk weights, and also addresses: (i) an alternative standard of creditworthiness consistent with Section 939A of the Dodd-Frank Act; (ii) revisions to recognition of credit risk mitigation; (iii) rules for risk weighting of equity exposures and past due loans; (iv) revised capital treatment for derivatives and repo-style transactions; and (v) disclosure requirements for top-tier banking organizations with $50 billion or more in total assets that are not subject to the “advance approach rules” that apply to banks with greater than $250 billion in consolidated assets. We currently satisfy the well-capitalized and the capital conservation standards, and based on our current capital composition and levels, we anticipate that our capital ratios, on a Basel III basis, will continue to exceed the well-capitalized minimum capital requirements and capital conservation buffer standards.
As of September 30, 2017, CTBI had a common equity Tier 1 capital ratio of 15.01%, a Tier 1 capital ratio of 16.90%, a total capital ratio of 18.10%, and a Tier 1 leverage ratio of 12.77%, all above the required levels to be considered “well-capitalized.” Our capital conservation buffer at September 30, 2017 was 10.10%.
As of September 30, 2017, we are not aware of any current recommendations by banking regulatory authorities which, if they were to be implemented, would have, or are reasonably likely to have, a material adverse impact on our liquidity, capital resources, or operations.
CTB will be required to make certain customer reimbursements related to two deposit add-on products. As previously discussed in CTBI’s most recent Form 10-K and Form 10-Q, management established a related accrual in 2014, which was not considered material. The time period and amount of the reimbursements have not yet been determined; therefore, the actual amount may materially vary from the amount management has evaluated as most likely at September 30, 2017.
Impact of Inflation, Changing Prices, and Economic Conditions
The majority of our assets and liabilities are monetary in nature. Therefore, CTBI differs greatly from most commercial and industrial companies that have significant investment in nonmonetary assets, such as fixed assets and inventories. However, inflation does have an important impact on the growth of assets in the banking industry and on the resulting need to increase equity capital at higher than normal rates in order to maintain an appropriate equity to assets ratio. Inflation also affects other expenses, which tend to rise during periods of general inflation.
We believe one of the most significant impacts on financial and operating results is our ability to react to changes in interest rates. We seek to maintain an essentially balanced position between interest rate sensitive assets and liabilities in order to protect against the effects of wide interest rate fluctuations.
Beginning in 2008, the U.S. economy faced a severe economic crisis including a major recession from which it is recovering. Commerce and business growth in certain regions in the U.S. remains reduced and local governments and many businesses continue to experience financial difficulty. In some areas of the U.S., including certain parts of our service area, unemployment levels remain elevated. There can be no assurance that these conditions will continue to improve and these conditions could worsen. In addition, the level of U.S. debt, the Federal Open Market Committee’s plan for economic stabilization, potential volatility in oil prices, potential U.S. tax law modifications, and the possible repeal of the Patient Protection and Affordable Care Act and the implementation of replacement healthcare legislation may have a destabilizing effect on financial markets or a negative effect on the economy.
Our financial performance generally, and in particular the ability of borrowers to pay interest on and repay principal of outstanding loans and the value of collateral securing those loans, as well as demand for loans and other products and services we offer, is highly dependent upon the business environment in the markets where we operate, in the states of Kentucky, West Virginia, and Tennessee and in the United States as a whole. While unemployment rates have improved in many areas of the United States, unemployment rates remain elevated in certain markets in which we operate. A favorable business environment is generally characterized by, among other factors, economic growth, efficient capital markets, low inflation, low unemployment, high business and investor confidence, and strong business earnings. Unfavorable or uncertain economic and market conditions can be caused by declines in economic growth, business activity, or investor or business confidence; limitations on the availability or increases in the cost of credit and capital; increases in inflation or interest rates; high unemployment; natural disasters; or a combination of these or other factors.
Overall, during the past several years, the business environment has been adverse for many households and businesses in the United States and worldwide. While economic conditions in the United States and worldwide have improved since the recession, there can be no assurance that this improvement will continue or that another recession will not occur. Economic pressure on consumers and uncertainty regarding continuing economic improvement may result in changes in consumer and business spending, borrowing, and savings habits. Such conditions could adversely affect the credit quality of our loans and our business, financial condition, and results of operations.
Stock Repurchase Program
CTBI has not acquired any shares of common stock through the stock repurchase program since February 2008. There are 67,371 shares remaining under CTBI’s current repurchase authorization.
Critical Accounting Policies and Estimates
The preparation of consolidated financial statements in conformity with accounting principles generally accepted in the United States of America requires the appropriate application of certain accounting policies, many of which require us to make estimates and assumptions about future events and their impact on amounts reported in our consolidated financial statements and related notes. Since future events and their impact cannot be determined with certainty, the actual results will inevitably differ from our estimates. Such differences could be material to the consolidated financial statements.
We believe the application of accounting policies and the estimates required therein are reasonable. These accounting policies and estimates are constantly reevaluated, and adjustments are made when facts and circumstances dictate a change. Historically, we have found our application of accounting policies to be appropriate, and actual results have not differed materially from those determined using necessary estimates.
We have identified the following critical accounting policies:
Investments – Management determines the classification of securities at purchase. We classify securities into held-to-maturity, trading, or available-for-sale categories. Held-to-maturity securities are those which we have the positive intent and ability to hold to maturity and are reported at amortized cost. In accordance with Financial Accounting Standards Board (FASB) Accounting Standards Codification (ASC) 320, Investment Securities, investments in debt securities that are not classified as held-to-maturity and equity securities that have readily determinable fair values shall be classified in one of the following categories and measured at fair value in the statement of financial position:
a. Trading securities. Securities that are bought and held principally for the purpose of selling them in the near term (thus held for only a short period of time) shall be classified as trading securities. Trading generally reflects active and frequent buying and selling, and trading securities are generally used with the objective of generating profits on short-term differences in price.
b. Available-for-sale securities. Investments not classified as trading securities (nor as held-to-maturity securities) shall be classified as available-for-sale securities.
We do not have any securities that are classified as trading securities. Available-for-sale securities are reported at fair value, with unrealized gains and losses included as a separate component of shareholders’ equity, net of tax. If declines in fair value are other than temporary, the carrying value of the securities is written down to fair value as a realized loss with a charge to income for the portion attributable to credit losses and a charge to other comprehensive income for the portion that is not credit related.
Gains or losses on disposition of securities are computed by specific identification for all securities except for shares in mutual funds, which are computed by average cost. Interest and dividend income, adjusted by amortization of purchase premium or discount, is included in earnings.
When the fair value of a security is below its amortized cost, and depending on the length of time the condition exists and the extent the fair market value is below amortized cost, additional analysis is performed to determine whether an other than temporary impairment condition exists. Available-for-sale and held-to-maturity securities are analyzed quarterly for possible other than temporary impairment. The analysis considers (i) whether we have the intent to sell our securities prior to recovery and/or maturity and (ii) whether it is more likely than not that we will not have to sell our securities prior to recovery and/or maturity. Often, the information available to conduct these assessments is limited and rapidly changing, making estimates of fair value subject to judgment. If actual information or conditions are different than estimated, the extent of the impairment of the security may be different than previously estimated, which could have a material effect on the CTBI’s results of operations and financial condition.
Loans – Loans with the ability and the intent to be held until maturity and/or payoff are reported at the carrying value of unpaid principal reduced by unearned interest, an allowance for loan and lease losses, and unamortized deferred fees or costs. Income is recorded on the level yield basis. Interest accrual is discontinued when management believes, after considering economic and business conditions, collateral value, and collection efforts, that the borrower’s financial condition is such that collection of interest is doubtful. Any loan greater than 90 days past due must be well secured and in the process of collection to continue accruing interest. Cash payments received on nonaccrual loans generally are applied against principal, and interest income is only recorded once principal recovery is reasonably assured. Loans are not reclassified as accruing until principal and interest payments remain current for a period of time, generally six months, and future payments appear reasonably certain. Included in certain loan categories of impaired loans are troubled debt restructurings that were classified as impaired. A restructuring of a debt constitutes a troubled debt restructuring if the creditor for economic or legal reasons related to the debtor’s financial difficulties grants a concession to the debtor that it would not otherwise consider.
Loan origination and commitment fees and certain direct loan origination costs are deferred and the net amount amortized over the estimated life of the related loans, leases, or commitments as a yield adjustment.
Allowance for Loan and Lease Losses – We maintain an allowance for loan and lease losses (“ALLL”) at a level that is appropriate to cover estimated credit losses on individually evaluated loans determined to be impaired, as well as estimated credit losses inherent in the remainder of the loan and lease portfolio. Credit losses are charged and recoveries are credited to the ALLL.
We utilize an internal risk grading system for commercial credits. Those larger commercial credits that exhibit probable or observed credit weaknesses are subject to individual review. The borrower’s cash flow, adequacy of collateral coverage, and other options available to CTBI, including legal remedies, are evaluated. The review of individual loans includes those loans that are impaired as defined by ASC 310-10-35, Impairment of a Loan. We evaluate the collectability of both principal and interest when assessing the need for loss provision. Historical loss rates are analyzed and applied to other commercial loans not subject to specific allocations. The ALLL allocation for this pool of commercial loans is established based on the historical average, maximum, minimum, and median loss ratios.
A loan is considered impaired when, based on current information and events, it is probable that CTBI will be unable to collect the scheduled payments of principal or interest when due according to the contractual terms of the loan agreement. Factors considered by management in determining impairment include payment status, collateral value, and the probability of collecting scheduled principal and interest payments when due. Loans that experience insignificant payment delays and payment shortfalls generally are not classified as impaired. Management determines the significance of payment delays and payment shortfalls on a case-by-case basis, taking into consideration all of the circumstances surrounding the loan and the borrower, including the length of the delay, the reasons for the delay, the borrower’s prior payment record, and the amount of the shortfall in relation to the principal and interest owed. Impairment is measured on a loan-by-loan basis for commercial and construction loans by either the present value of expected future cash flows discounted at the loan’s effective interest rate, the loan’s obtainable market price, or the fair value of the collateral if the loan is collateral dependent.
Homogenous loans, such as consumer installment, residential mortgages, and home equity lines are not individually risk graded. The associated ALLL for these loans is measured under ASC 450, Contingencies.
When any secured commercial loan is considered uncollectable, whether past due or not, a current assessment of the value of the underlying collateral is made. If the balance of the loan exceeds the fair value of the collateral, the loan is placed on nonaccrual and the loan is charged down to the value of the collateral less estimated cost to sell or a specific reserve equal to the difference between book value of the loan and the fair value assigned to the collateral is created until such time as the loan is foreclosed. When the foreclosed collateral has been legally assigned to CTBI, the estimated fair value of the collateral less costs to sell is then transferred to other real estate owned or other repossessed assets, and a charge-off is taken for any remaining balance. When any unsecured commercial loan is considered uncollectable the loan is charged off no later than at 90 days past due.
All closed-end consumer loans (excluding conventional 1-4 family residential loans and installment and revolving loans secured by real estate) are charged off no later than 120 days (5 monthly payments) delinquent. If a loan is considered uncollectable, it is charged off earlier than 120 days delinquent. For conventional 1-4 family residential loans and installment and revolving loans secured by real estate, when a loan is 90 days past due, a current assessment of the value of the real estate is made. If the balance of the loan exceeds the fair value of the property, the loan is placed on nonaccrual. Foreclosure proceedings are normally initiated after 120 days. When the foreclosed property has been legally assigned to CTBI, the fair value less estimated costs to sell is transferred to other real estate owned and the remaining balance is taken as a charge-off.
Historical loss rates for loans are adjusted for significant factors that, in management’s judgment, reflect the impact of any current conditions on loss recognition. We use twelve rolling quarters for our historical loss rate analysis. Factors that we consider include delinquency trends, current economic conditions and trends, strength of supervision and administration of the loan portfolio, levels of underperforming loans, level of recoveries to prior year’s charge-offs, trends in loan losses, industry concentrations and their relative strengths, amount of unsecured loans, and underwriting exceptions. Management continually reevaluates the other subjective factors included in its ALLL analysis.
Other Real Estate Owned – When foreclosed properties are acquired, appraisals are obtained and the properties are booked at the current fair market value less expected sales costs. Additionally, periodic updated appraisals are obtained on unsold foreclosed properties. When an updated appraisal reflects a fair market value below the current book value, a charge is booked to current earnings to reduce the property to its new fair market value less expected sales costs. Our policy for determining the frequency of periodic reviews is based upon consideration of the specific properties and the known or perceived market fluctuations in a particular market and is typically between 12 and 18 months but generally not more than 24 months. All revenues and expenses related to the carrying of other real estate owned are recognized through the income statement.
Income Taxes – Income tax expense is based on the taxes due on the consolidated tax return plus deferred taxes based on the expected future tax benefits and consequences of temporary differences between carrying amounts and tax bases of assets and liabilities, using enacted tax rates. Any interest and penalties incurred in connection with income taxes are recorded as a component of income tax expense in the consolidated financial statements. During the nine months ended September 30, 2017 and 2016, CTBI has not recognized a significant amount of interest expense or penalties in connection with income taxes.
Item 3. Quantitative and Qualitative Disclosures About Market Risk
Interest rate risk management focuses on maintaining consistent growth in net interest income within Board-approved policy limits. CTBI uses an earnings simulation model to analyze net interest income sensitivity to movements in interest rates. Given a 200 basis point increase to the yield curve used in the simulation model, it is estimated net interest income for CTBI would increase by 2.96 percent over one year and 3.46 percent over two years. A 25 basis point decrease in the yield curve would decrease net interest income by an estimated 0.17 percent over one year and 0.23 percent over two years. For further discussion of CTBI’s market risk, see the Management’s Discussion and Analysis of Financial Condition and Results of Operations—Liquidity and Market Risk included in the annual report on Form 10-K for the year ended December 31, 2016.
Item 4. Controls and Procedures
EVALUATION OF DISCLOSURE CONTROLS AND PROCEDURES
CTBI’s management is responsible for establishing and maintaining effective disclosure controls and procedures, as defined under Rules 13a-15(e) and 15d-15(e) under the Securities Exchange Act of 1934. As of the end of the period covered by this report, an evaluation was carried out by CTBI’s management, with the participation of our Chief Executive Officer and the Executive Vice President, Chief Financial Officer, and Treasurer, of the effectiveness of the design and operation of our disclosure controls and procedures. Based on this evaluation, management concluded that disclosure controls and procedures as of September 30, 2017 were effective in ensuring material information required to be disclosed in this quarterly report on Form 10-Q was recorded, processed, summarized, and reported on a timely basis.
CHANGES IN INTERNAL CONTROL OVER FINANCIAL REPORTING
There were no changes in CTBI’s internal control over financial reporting that occurred during the quarter ended September 30, 2017 that have materially affected, or are reasonably likely to materially affect, CTBI’s internal control over financial reporting.
PART II - OTHER INFORMATION

Item 1. | Legal Proceedings | None
Item 1A. | Risk Factors | None
Item 2. | Unregistered Sales of Equity Securities and Use of Proceeds | None
Item 3. | Defaults Upon Senior Securities | None
Item 4. | Mine Safety Disclosure | Not applicable
Item 5. | Other Information: |
| CTBI’s Principal Executive Officer and Principal Financial Officer have furnished to the SEC the certifications with respect to this Form 10-Q that are required by Sections 302 and 906 of the Sarbanes-Oxley Act of 2002 |
Item 6. | Exhibits: |
| (1) Certifications Pursuant to 18 U.S.C. Section 1350, as adopted pursuant to Section 302 of the Sarbanes-Oxley Act of 2002 | Exhibit 31.1 Exhibit 31.2
| (2) Certifications Pursuant to 18 U.S.C. Section 1350, as adopted pursuant to Section 906 of the Sarbanes-Oxley Act of 2002 | Exhibit 32.1 Exhibit 32.2
| (3) XBRL Instance Document | Exhibit 101.INS
| (4) XBRL Taxonomy Extension Schema | Exhibit 101.SCH
| (5) XBRL Taxonomy Extension Calculation Linkbase | Exhibit 101.CAL
| (6) XBRL Taxonomy Extension Definition Linkbase | Exhibit 101.DEF
| (7) XBRL Taxonomy Extension Label Linkbase | Exhibit 101.LAB
| (8) XBRL Taxonomy Extension Presentation Linkbase | Exhibit 101.PRE

SIGNATURES
Pursuant to the requirements of the Securities Exchange Act of 1934, CTBI has duly caused this report to be signed on its behalf by the undersigned thereunto duly authorized.

| COMMUNITY TRUST BANCORP, INC. |
November 8, 2017 | By: | /s/ Jean R. Hale |
|  | Jean R. Hale |
|  | Chairman, President, and Chief Executive Officer |

|  | /s/ Kevin J. Stumbo |
|  | Kevin J. Stumbo |
|  | Executive Vice President, Chief Financial Officer, and Treasurer |