LOANS AND ALLOWANCE FOR LOAN LOSSES | LOANS AND ALLOWANCE FOR LOAN LOSSES The composition of the loan portfolio, net of deferred origination fees and costs, is summarized as follows (in thousands): June 30, December 31, Commercial and agricultural: Commercial and industrial $ 206,588 $ 202,526 Agricultural 210 328 Commercial mortgages: Construction 39,606 54,476 Commercial mortgages, other 608,894 606,694 Residential mortgages 183,835 182,724 Consumer loans: Credit cards — 1,449 Home equity lines and loans 94,465 98,145 Indirect consumer loans 138,658 149,380 Direct consumer loans 16,115 16,184 Total loans, net of deferred origination fees and costs 1,288,371 1,311,906 Interest receivable on loans 4,052 3,703 Total recorded investment in loans $ 1,292,423 $ 1,315,609 The Corporation's concentrations of credit risk by loan type are reflected in the preceding table. The concentrations of credit risk with standby letters of credit, committed lines of credit and commitments to originate new loans generally follow the loan classifications in the table above. The following tables present the activity in the allowance for loan losses by portfolio segment for the three month periods ended June 30, 2019 and 2018 (in thousands): Three Months Ended June 30, 2019 Allowance for loan losses Commercial and Agricultural Commercial Mortgages Residential Mortgages Consumer Loans Total Beginning balance $ 5,429 $ 9,474 $ 1,215 $ 3,627 $ 19,745 Charge-offs (48 ) — (39 ) (318 ) (405 ) Recoveries 4 1 45 116 166 Net recoveries (charge-offs) (44 ) 1 6 (202 ) (239 ) Provision 91 70 8 (19 ) 150 Ending balance $ 5,476 $ 9,545 $ 1,229 $ 3,406 $ 19,656 Three Months Ended June 30, 2018 Allowance for loan losses Commercial and Agricultural Commercial Mortgages Residential Mortgages Consumer Loans Total Beginning balance $ 7,003 $ 8,640 $ 1,407 $ 4,340 $ 21,390 Charge-offs (3,624 ) (145 ) (71 ) (463 ) (4,303 ) Recoveries 11 1 — 184 196 Net recoveries (charge-offs) (3,613 ) (144 ) (71 ) (279 ) (4,107 ) Provision 1,579 244 109 430 2,362 Ending balance $ 4,969 $ 8,740 $ 1,445 $ 4,491 $ 19,645 The following tables present the activity in the allowance for loan losses by portfolio segment for the six month periods ended June 30, 2019 and 2018 (in thousands): Six Months Ended June 30, 2019 Allowance for loan losses Commercial and Agricultural Commercial Mortgages Residential Mortgages Consumer Loans Total Beginning balance: $ 5,383 $ 8,184 $ 1,226 $ 4,151 $ 18,944 Charge-offs: (55 ) — (41 ) (757 ) (853 ) Recoveries: 15 2 45 260 322 Net recoveries (charge-offs) (40 ) 2 4 (497 ) (531 ) Provision 133 1,359 (1 ) (248 ) 1,243 Ending balance $ 5,476 $ 9,545 $ 1,229 $ 3,406 $ 19,656 Six Months Ended June 30, 2018 Allowance for loan losses Commercial and Agricultural Commercial Mortgages Residential Mortgages Consumer Loans Total Beginning balance: $ 6,976 $ 8,514 $ 1,316 $ 4,355 $ 21,161 Charge-offs: (3,644 ) (145 ) (165 ) (921 ) (4,875 ) Recoveries: 21 2 5 260 288 Net recoveries (charge-offs) (3,623 ) (143 ) (160 ) (661 ) (4,587 ) Provision 1,616 369 289 797 3,071 Ending balance $ 4,969 $ 8,740 $ 1,445 $ 4,491 $ 19,645 The following tables present the balance in the allowance for loan losses and the recorded investment in loans by portfolio segment and based on impairment method as of June 30, 2019 and December 31, 2018 (in thousands): June 30, 2019 Allowance for loan losses: Commercial and Agricultural Commercial Mortgages Residential Mortgages Consumer Loans Total Ending allowance balance attributable to loans: Individually evaluated for impairment $ 1,726 $ 2,738 $ — $ — $ 4,464 Collectively evaluated for impairment 3,750 6,807 1,229 3,406 15,192 Total ending allowance balance $ 5,476 $ 9,545 $ 1,229 $ 3,406 $ 19,656 December 31, 2018 Allowance for loan losses: Commercial and Agricultural Commercial Mortgages Residential Mortgages Consumer Loans Total Ending allowance balance attributable to loans: Individually evaluated for impairment $ 1,743 $ 446 $ — $ — $ 2,189 Collectively evaluated for impairment 3,640 7,738 1,226 4,151 16,755 Total ending allowance balance $ 5,383 $ 8,184 $ 1,226 $ 4,151 $ 18,944 June 30, 2019 Loans: Commercial and Agricultural Commercial Mortgages Residential Mortgages Consumer Loans Total Loans individually evaluated for impairment $ 2,074 $ 14,056 $ 385 $ 160 $ 16,675 Loans collectively evaluated for impairment 205,395 636,546 183,962 249,845 1,275,748 Total ending loans balance $ 207,469 $ 650,602 $ 184,347 $ 250,005 $ 1,292,423 December 31, 2018 Loans: Commercial and Agricultural Commercial Mortgages Residential Mortgages Consumer Loans Total Loans individually evaluated for impairment $ 2,128 $ 6,146 $ 402 $ 55 $ 8,731 Loans collectively evaluated for impairment 201,284 656,842 182,823 265,929 1,306,878 Total ending loans balance $ 203,412 $ 662,988 $ 183,225 $ 265,984 $ 1,315,609 The following table presents loans individually evaluated for impairment recognized by class of loans as of June 30, 2019 and December 31, 2018 (in thousands): June 30, 2019 December 31, 2018 With no related allowance recorded: Unpaid Principal Balance Recorded Investment Allowance for Loan Losses Allocated Unpaid Principal Balance Recorded Investment Allowance for Loan Losses Allocated Commercial and agricultural: Commercial and industrial $ 272 $ 273 $ — $ 345 $ 346 $ — Commercial mortgages: Construction 277 278 — 307 308 — Commercial mortgages, other 3,436 3,438 — 4,007 3,935 — Residential mortgages 413 385 — 424 402 — Consumer loans: Home equity lines and loans 158 160 — 54 55 — With an allowance recorded: Commercial and agricultural: Commercial and industrial 1,800 1,801 1,726 1,780 1,782 1,743 Commercial mortgages: Commercial mortgages, other 10,423 10,340 2,738 1,902 1,903 446 Total $ 16,779 $ 16,675 $ 4,464 $ 8,819 $ 8,731 $ 2,189 The following table presents the average recorded investment and interest income of loans individually evaluated for impairment recognized by class of loans for the three and six -month periods ended June 30, 2019 and 2018 (in thousands): Three Months Ended Three Months Ended Six Months Ended Six Months Ended With no related allowance recorded: Average Recorded Investment Interest Income Recognized Average Recorded Investment Interest Income Recognized Average Recorded Investment Interest Income Recognized Average Recorded Investment Interest Income Recognized Commercial and agricultural: Commercial and industrial $ 289 $ — $ 710 $ 7 $ 308 $ 1 $ 762 $ 15 Commercial mortgages: Construction 285 2 345 3 293 5 352 6 Commercial mortgages, other 3,640 3 4,290 5 3,738 6 4,240 10 Residential mortgages 388 2 421 2 393 4 423 4 Consumer loans: Home equity lines & loans 163 1 61 1 127 1 62 2 With an allowance recorded: Commercial and agricultural: Commercial and industrial 1,817 — 3,196 — 1,805 — 3,886 — Commercial mortgages: Commercial mortgages, other 7,741 — 2,467 1 5,795 — 2,578 3 Total $ 14,323 $ 8 $ 11,490 $ 19 $ 12,459 $ 17 $ 12,303 $ 40 (1) Cash basis interest income approximates interest income recognized. The following table presents the recorded investment in non-accrual and loans past due 90 days or more and still accruing by class of loans as of June 30, 2019 and December 31, 2018 (in thousands): Non-accrual Loans Past Due 90 Days or More and Still Accruing June 30, 2019 December 31, 2018 June 30, 2019 December 31, 2018 Commercial and agricultural: Commercial and industrial $ 2,042 $ 2,048 $ 57 $ 10 Commercial mortgages: Construction 94 109 — — Commercial mortgages, other 13,580 5,529 — — Residential mortgages 2,545 2,655 — — Consumer loans: Credit cards — — — 9 Home equity lines and loans 722 1,183 — — Indirect consumer loans 526 693 — — Direct consumer loans 7 37 — — Total $ 19,516 $ 12,254 $ 57 $ 19 The following tables present the aging of the recorded investment in loans as of June 30, 2019 and December 31, 2018 (in thousands): June 30, 2019 30 - 59 Days Past Due 60 - 89 Days Past Due 90 Days or More Past Due Total Past Due Loans Not Past Due Total Commercial and agricultural: Commercial and industrial $ 1,221 $ 87 $ 128 $ 1,436 $ 205,822 $ 207,258 Agricultural — — — — 211 211 Commercial mortgages: Construction — — — — 39,734 39,734 Commercial mortgages, other 2,593 87 2,126 4,806 606,062 610,868 Residential mortgages 1,894 557 1,039 3,490 180,857 184,347 Consumer loans: Home equity lines and loans 886 22 251 1,159 93,629 94,788 Indirect consumer loans 1,128 185 201 1,514 137,515 139,029 Direct consumer loans 89 54 — 143 16,045 16,188 Total $ 7,811 $ 992 $ 3,745 $ 12,548 $ 1,279,875 $ 1,292,423 December 31, 2018 30 - 59 Days Past Due 60 - 89 Days Past Due 90 Days or More Past Due Total Past Due Loans Not Past Due Total Commercial and agricultural: Commercial and industrial $ 284 $ 61 $ 71 $ 416 $ 202,667 $ 203,083 Agricultural 16 — — 16 313 329 Commercial mortgages: Construction — — — — 54,626 54,626 Commercial mortgages, other 6,273 158 169 6,600 601,762 608,362 Residential mortgages 2,204 516 1,026 3,746 179,479 183,225 Consumer loans: Credit cards 1 3 9 13 1,437 1,450 Home equity lines and loans 279 97 730 1,106 97,360 98,466 Indirect consumer loans 1,511 319 436 2,266 147,540 149,806 Direct consumer loans 120 53 31 204 16,058 16,262 Total $ 10,688 $ 1,207 $ 2,472 $ 14,367 $ 1,301,242 $ 1,315,609 Troubled Debt Restructurings: A modification of a loan may result in classification as a TDR when a borrower is experiencing financial difficulty and the modification constitutes a concession. The Corporation offers various types of modifications which may involve a change in the schedule of payments, a reduction in the interest rate, an extension of the maturity date, extending the maturity date at an interest rate lower than the current market rate for new debt with similar risk, requesting additional collateral, releasing collateral for consideration, substituting or adding a new borrower or guarantor, a permanent reduction of the recorded investment in the loan or a permanent reduction of the interest on the loan. As of June 30, 2019 and December 31, 2018 , the Corporation has a recorded investment in TDRs of $6.3 million and $6.8 million , respectively. There were specific reserves of $0.7 million and $0.9 million allocated for TDRs at June 30, 2019 and December 31, 2018 , respectively. As of June 30, 2019 , TDRs totaling $0.6 million were accruing interest under the modified terms and $5.7 million were on non-accrual status. As of December 31, 2018 , TDRs totaling $0.8 million were accruing interest under the modified terms and $6.0 million were on non-accrual status. The Corporation had committed no additional amounts as of both June 30, 2019 and December 31, 2018 , to customers with outstanding loans that are classified as TDRs. There were no loans modified as TDRs during the three month period ended June 30, 2019 or the three month period ended June 30, 2018. During the six months ended June 30, 2019 and 2018, the terms of certain loans were modified as TDRs. The modification of the terms of one home equity loan during the six months ended June 30, 2019 included a reduction in the stated interest rate for the remaining life of the loan, an extension of the maturity date for approximately three years and a reduction of the scheduled amortized payment of the loan for greater than a three month period. The modification of the terms of one commercial and industrial term loan during the six months ended June 30, 2018 included an extension of the maturity date at a stated rate of interest lower than the current market rate for new debt with similar risk. The following tables present loans by class modified as TDRs that occurred during the six months ended June 30, 2019 and 2018 (dollars in thousands): June 30, 2019 Number of Loans Pre-Modification Outstanding Recorded Investment Post-Modification Outstanding Recorded Investment Troubled debt restructurings: Consumer loans: Home equity lines and loans 1 $ 137 $ 137 Total 1 $ 137 $ 137 June 30, 2018 Number of Loans Pre-Modification Outstanding Recorded Investment Post-Modification Outstanding Recorded Investment Troubled debt restructurings: Commercial and agricultural: Commercial and industrial 1 $ 100 $ 100 Total 1 $ 100 $ 100 The TDRs described above did not increase the allowance for loan losses and resulted in no charge-offs during the six month periods ended June 30, 2019 and 2018 . A loan is considered to be in payment default once it is 90 days contractually past due under the modified terms. There were no payment defaults on any loans previously modified as TDRs within twelve months following the modification during the three and six month periods ended June 30, 2019 and 2018 . Credit Quality Indicators The Corporation establishes a risk rating at origination for all commercial loans. The main factors considered in assigning risk ratings include, but are not limited to: historic and future debt service coverage, collateral position, operating performance, liquidity, leverage, payment history, management ability, and the customer’s industry. Commercial relationship managers monitor all loans in their respective portfolios for any changes in the borrower’s ability to service its debt and affirm the risk ratings for the loans at least annually. For the retail loans, which include residential mortgages, indirect and direct consumer loans, home equity lines and loans, and credit cards, once a loan is properly approved and closed, the Corporation evaluates credit quality based upon loan repayment. The Corporation uses the risk rating system to identify criticized and classified loans. Commercial relationships within the criticized and classified risk ratings are analyzed quarterly. The Corporation uses the following definitions for criticized and classified loans (which are consistent with regulatory guidelines): Special Mention – Loans classified as special mention have a potential weakness that deserves management’s close attention. If left uncorrected, these potential weaknesses may result in deterioration of the repayment prospects for the loan or the institution’s credit position at some future date. Substandard – Loans classified as substandard are inadequately protected by the current net worth and paying capability of the obligor or of the collateral pledged, if any. Loans so classified have a well-defined weakness or weaknesses that jeopardize the liquidation of the debt. They are characterized by the distinct possibility that the institution will sustain some loss if the deficiencies are not corrected. Doubtful – Loans classified as doubtful have all the weaknesses inherent in those classified as substandard, 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. Commercial loans not meeting the criteria above to be considered criticized or classified are considered to be pass rated loans. Loans listed as not rated are included in groups of homogeneous loans performing under terms of the loan notes. Based on the analyses performed as of June 30, 2019 and December 31, 2018 , the risk category of the recorded investment of loans by class of loans is as follows (in thousands): June 30, 2019 Not Rated Pass Special Mention Substandard Doubtful Total Commercial and agricultural: Commercial and industrial $ — $ 195,789 $ 2,641 $ 7,085 $ 1,743 $ 207,258 Agricultural — 211 — — — 211 Commercial mortgages: Construction — 39,640 — 94 — 39,734 Commercial mortgages — 582,259 7,343 16,730 4,536 610,868 Residential mortgages 181,802 — — 2,545 — 184,347 Consumer loans: Credit cards — — — — — — Home equity lines and loans 94,066 — — 722 — 94,788 Indirect consumer loans 138,503 — — 526 — 139,029 Direct consumer loans 16,181 — — 7 — 16,188 Total $ 430,552 $ 817,899 $ 9,984 $ 27,709 $ 6,279 $ 1,292,423 December 31, 2018 Not Rated Pass Special Mention Substandard Doubtful Total Commercial and agricultural: Commercial and industrial $ — $ 190,666 $ 4,452 $ 6,222 $ 1,743 $ 203,083 Agricultural — 329 — — — 329 Commercial mortgages: Construction — 54,517 — 109 — 54,626 Commercial mortgages — 574,221 16,830 15,948 1,363 608,362 Residential mortgages 180,570 — — 2,655 — 183,225 Consumer loans: Credit cards 1,450 — — — — 1,450 Home equity lines and loans 97,283 — — 1,183 — 98,466 Indirect consumer loans 149,113 — — 693 — 149,806 Direct consumer loans 16,225 — — 37 — 16,262 Total $ 444,641 $ 819,733 $ 21,282 $ 26,847 $ 3,106 $ 1,315,609 The Corporation considers the performance of the loan portfolio and its impact on the allowance for loan losses. For residential and consumer loan classes, the Corporation also evaluates credit quality based on the aging status of the loan, which was previously presented, and by payment activity. The following tables present the recorded investment in residential and consumer loans based on payment activity as of June 30, 2019 and December 31, 2018 (in thousands): June 30, 2019 Consumer Loans Residential Mortgages Credit Card Home Equity Lines and Loans Indirect Consumer Loans Other Direct Consumer Loans Performing $ 181,802 $ — $ 94,066 $ 138,503 $ 16,181 Non-Performing 2,545 — 722 526 7 $ 184,347 $ — $ 94,788 $ 139,029 $ 16,188 December 31, 2018 Consumer Loans Residential Mortgages Credit Card Home Equity Lines and Loans Indirect Consumer Loans Other Direct Consumer Loans Performing $ 180,570 $ 1,450 $ 97,283 $ 149,113 $ 16,225 Non-Performing 2,655 — 1,183 693 37 $ 183,225 $ 1,450 $ 98,466 $ 149,806 $ 16,262 |