Nine Months Ended September 30, 2019 and 2018
Nine Months Ended September 30, | |||||||
(in thousands) | 2019 | 2018 | |||||
Cash flows from operating activities: | |||||||
Net loss | $ | (64,972) | $ | (41,123) | |||
Adjustments to reconcile net loss to net cash provided by (used in) operating activities: | |||||||
Depreciation and amortization | 39,305 | 44,986 | |||||
Stock-based compensation | 19,221 | 21,082 | |||||
Provision for bad debts | 1,152 | 2,522 | |||||
Loss on the disposition of property, equipment and other assets | 1,620 | — | |||||
Provision for deferred income taxes | (1,346) | (3,132) | |||||
Impairment of assets | 1,728 | 1,411 | |||||
Changes in operating accounts: | |||||||
Accounts receivable | 12,290 | (1,509) | |||||
Inventories | 6,481 | (29,502) | |||||
Prepaid expenses and other current assets | (3,122) | 41,589 | |||||
Accounts payable | (12,885) | 6,261 | |||||
Deferred revenue and customer deposits | 4,491 | (37) | |||||
Accrued and other current liabilities | 1,199 | (45,309) | |||||
All other operating activities | 4,922 | (170) | |||||
Net cash provided by (used in) operating activities | 10,084 | (2,931) | |||||
Cash flows from investing activities: | |||||||
Purchases of property and equipment | (18,265) | (28,323) | |||||
Proceeds from sale of assets | 1,620 | 9 | |||||
Other investing activities | (1,744) | (1,236) | |||||
Net cash used in investing activities | (18,389) | (29,550) | |||||
Cash flows from financing activities: | |||||||
Proceeds from borrowings | 100,000 | — | |||||
Repayment of borrowings/long term debt | (66,013) | — | |||||
Payments related to net-share settlement of stock based compensation | (3,029) | (5,723) | |||||
Purchase of noncontrolling interest | (2,500) | — | |||||
Payments on earnout consideration | — | (2,675) | |||||
Other financing activities | (1,125) | (508) | |||||
Net cash provided by (used in) financing activities | 27,333 | (8,906) | |||||
Effect of exchange rate changes on cash, cash equivalents and restricted cash | (1,400) | (2,417) | |||||
Net increase (decrease) in cash, cash equivalents and restricted cash | 17,628 | (43,804) | |||||
Cash, cash equivalents and restricted cash at the beginning of the period (a) | 110,919 | 136,831 | |||||
Cash, cash equivalents and restricted cash at the end of the period (a) | $ | 128,547 | $ | 93,027 |