XML 28 R8.htm IDEA: XBRL DOCUMENT v3.19.3
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
9 Months Ended
Sep. 30, 2019
Sep. 30, 2018
Cash flows from operating activities    
Net income (loss) $ 6,632 $ (6,601)
Adjustments to reconcile net income (loss) to net cash provided by operating activities:    
Depreciation and amortization 18,784 11,254
Non-cash interest expense 24,274 21,790
Stock-based compensation expense 20,704 31,205
Loss on extinguishment of debt 6,451 10
Provision for bad debts 2,644 2,588
Other 1,850 (245)
Changes in operating assets and liabilities:    
Accounts receivable and unbilled receivable (5,957) (24,581)
Inventories (20,046) (25,279)
Prepaid expenses and other assets (4,883) (5,258)
Accounts payable, accrued expenses and other current liabilities (2,550) 2,938
Deferred revenue 847 (2,761)
Other liabilities 2,717 400
Net cash provided by operating activities 51,467 5,460
Cash flows from investing activities    
Capital expenditures (114,585) (124,855)
Acquisition of intangible assets (6,390) (2,704)
Purchases of investments (63,904) (145,575)
Receipts from the maturity or sale of investments 165,275 129,415
Net cash used in investing activities (19,604) (143,719)
Cash flows from financing activities    
Proceeds from issuance of convertible notes, net of issuance costs 780,202 0
Repayment of convertible debt (453,608) (6,699)
Purchase of capped call options (85,360) 0
Proceeds from exercise of stock options and issuance of common stock under employee stock purchase plan 42,945 13,464
Payments for taxes related to net share settlement of equity awards (8,234) (13,846)
Net cash provided by (used in) financing activities 275,945 (7,081)
Effect of exchange rate changes on cash (1,832) (674)
Net increase (decrease) in cash, cash equivalents and restricted cash 305,976 (146,014)
Cash, cash equivalents and restricted cash at beginning of period 113,906 272,577
Cash, cash equivalents and restricted cash at end of period 419,882 126,563
Supplemental cash flow information:    
Purchases of property and equipment included in accounts payable and accrued expenses 10,616 $ 10,711
Additions to ROU assets resulting from new operating lease liabilities $ 5,117