Table:
|  |  | Year Ended December 31, |  |
| --- | --- | --- | --- |
|  | 2019 | 2018 | 2017 |
| Cash, cash equivalents and restricted cash at beginning of period | $60,068 | $103,051 | $60,765 |
| Cash provided by operating activities | 10,317 | 3,295 | 4,863 |
| Cash used in investing activities | (24,574) | (48,413) | (70,972) |
| Cash provided by financing activities | 494,101 | 3,099 | 108,475 |
| Effects of exchange rates on cash, cash equivalents and restricted cash | (250) | (964) | (80) |
| Cash, cash equivalents and restricted cash at end of period | $539,662 | $60,068 | $103,051 |
Paragraphs:
Cash Flows
The following table summarizes our cash flows for the years ended December 31, 2019, 2018 and 2017 (in thousands):
At December 31, 2019, $6.7 million of the $539.7 million of cash, cash equivalents and restricted cash was held by foreign subsidiaries. Our intention is to indefinitely reinvest foreign earnings in our foreign subsidiaries. If these earnings were used to fund domestic operations, they would be subject to additional income taxes upon repatriation.
Question:
Where is foreign earnings reinvested?
Answer: in our foreign subsidiaries.