v3.10.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited) - USD ($)
$ in Thousands
6 Months Ended
Jun. 30, 2018
Jun. 30, 2017
Cash flows provided by operating activities:    
Net income $ 70,254 $ 36,699
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation and amortization of property, equipment and intangible assets 5,053 3,130
Amortization of premiums on available-for-sale marketable securities 1,014 791
Stock-based compensation 13,977 7,646
Deferred tax assets, net (3,018) (2,105)
Loss on disposals of fixed assets 64
Changes in assets and liabilities:    
Inventories (18,952) 11,153
Prepaid expenses and other accounts receivable (2,135) (12,675)
Trade receivables, net (9,203) (8,399)
Trade payables, net 12,143 2,007
Employees and payroll accruals 1,028 1,206
Warranty obligations 18,479 6,965
Deferred revenues 13,120 6,935
Accrued expenses and other accounts payable 6,194 3,958
Lease incentive obligation (148) (148)
Net cash provided by operating activities 107,870 57,163
Cash flows used in investing activities:    
Purchase of property and equipment (21,385) (7,611)
Investment in available-for-sale marketable securities (89,389) (74,106)
Maturities of available-for-sale marketable securities 46,825 31,674
Net cash used in investing activities (63,949) (50,043)
Cash flows from financing activities:    
Proceeds from issuance of shares under stock purchase plan and upon exercise of stock-based awards 7,591 2,123
Net cash provided by financing activities 7,591 2,123
Net increase in cash, cash equivalents and restricted cash 51,512 9,243
Cash, cash equivalents and restricted cash at the beginning of the period 164,679 105,580
Effect of exchange rate differences on cash, cash equivalents and restricted cash 398 (274)
Cash, cash equivalents and restricted cash at the end of the period $ 216,589 $ 114,549