XML 21 R7.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Cash provided by (used for) operating activities:      
Net income (loss) $ 114,240 $ (742,353) $ 52,960
Adjustments to reconcile net income (loss) to net cash provided by operating activities:      
Depreciation and amortization 237,285 214,362 119,938
Stock-based compensation 23,178 19,536 10,250
Loss (gain) on disposal of fixed assets (40,371) 8,037 (2,046)
Loss on goodwill and long-lived asset impairment 0 657,251 1,746
Loss on sale of business 0 0 2,475
Loss on debt extinguishment 11,098 0 0
Provision (recovery) of bad debt (2,018) 3,523 4,955
Provision for inventory obsolescence and write-downs 4,968 23,841 (141)
Amortization of deferred loan costs and accretion of discount 3,543 3,799 2,590
Deferred income tax expense (benefit) (20,552) (41,998) (13,874)
Employee benefit plan expense 2,605 3,054 1,883
Other 510 3,306 3,733
Changes in operating assets and liabilities (net of effects of acquisitions and foreign exchange):      
Receivables (28,736) 58,210 25,948
Inventories (124,154) 85,893 19,065
Prepaid expenses and other current assets (2,342) 17,539 (10,742)
Accounts payable 171,398 (18,389) (20,526)
Accrued compensation and employee benefits 20,920 9,669 (6,358)
Accrued expenses and other liabilities (40,844) 6,674 4,406
Leased assets (5,151) (4,606) (40,700)
Other 2,642 2,692 337
Net cash provided by operating activities 328,219 310,040 155,899
Cash provided by (used for) investing activities:      
Proceeds from sale of fixed assets 72,022 9,705 4,598
Capital expenditures (84,464) (45,163) (39,780)
Acquisitions, net of cash acquired (20,095) 57,588 (12,500)
Purchase of investments (4,874) 0 0
Payment on sale of business 0 0 (2,194)
Net cash provided by (used for) investing activities (37,411) 22,130 (49,876)
Cash provided by (used for) financing activities:      
Proceeds from long-term debt 0 125,000 36,500
Payment of debt issue costs 0 (4,356) 0
Repayment of long-term debt (223,413) (286,493) (141,500)
Proceeds from exercise of stock options 8,819 886 0
Payments related to taxes withheld on stock-based compensation (9,777) (3,089) (1,848)
Distribution to noncontrolling interest (3,718) (2,175) 0
Payment of finance lease obligations (6,258) (5,139) (5,555)
Net cash used for financing activities (234,347) (175,366) (112,403)
Effect of exchange rate changes on cash and cash equivalents and restricted cash (2,704) 9,327 (162)
Net increase (decrease) in cash and cash equivalents and restricted cash 53,757 166,131 (6,542)
Cash and cash equivalents and restricted cash at beginning of period 201,421 35,290 41,832
Cash and cash equivalents and restricted cash at end of period $ 255,178 $ 201,421 $ 35,290