Table:
|  | 2019 | 2018 | 2017 |
| --- | --- | --- | --- |
| Beginning balance, January 1 | $2,429 | $7,478 | $3,532 |
| Additions and adjustments | 1,074 | 1,691 | 7,680 |
| Write-offs | (2,128) | (6,740) | (3,734) |
| Ending balance, December 31 | $1,375 | $2,429 | $7,478 |
Paragraphs:
Allowance for Doubtful Accounts
The Company bases its allowance for doubtful accounts on its historical collection experience and a review in each period of the status of the then outstanding accounts receivable.
A reconciliation of the beginning and ending amount of allowance for doubtful accounts is as follows (in thousands):
The Company recognized bad debt expense of $0.5 million, $0.8 million, and $1.4 million for the years ended December 31, 2019, 2018, and 2017, respectively.
Question:
What was the company's bad debt expense for the year ending December 31, 2018?
Answer: $0.8 million