| Schedule of lease cost components, Cash Flow information, and term and discount rate information |
The following table reflects lease expense for the years ended December 31, 2021 and 2020 (in thousands): | | | | | | | | | | | | | | | | | | | | | Year ended December 31, 2021 | | Year ended December 31, 2020 | | Financial Statement Classification | | | | Operating lease cost | Selling, general and administrative expenses | | $ | 307 | | | $ | 1,760 | | | Operating lease cost | Other gain (loss) | | 591 | | | 1,391 | | | Total lease cost | | | $ | 898 | | | $ | 3,151 | | | | | | | | | Sublease Income | Other gain (loss) | | $ | 1,148 | | | $ | 2,236 | |
The following table reflects supplemental cash flow information related to leases for the years ended December 31, 2021 and 2020 (in thousands): | | | | | | | | | | | | | | | | | Year ended December 31, 2021 | | Year ended December 31, 2020 | | | | | Cash paid for amounts included in measurement of liabilities: | | | | | | Operating cash flows from operating leases | | $ | 2,799 | | | $ | 3,004 | |
The following table reflects other lease information as of December 31, 2021 and 2020: | | | | | | | | | | | | | | | | | December 31, 2021 | | December 31, 2020 | | Weighted-average remaining lease term (years): | | | | | | Operating leases | | 1.2 | | 2.2 | | Weighted-average discount rate: | | | | | | Operating leases | | 7.8 | % | | 6.3 | % |
|
| Schedule of supplemental Balance Sheet information |
The following table reflects supplemental balance sheet information related to leases as of December 31, 2021 and 2020 (in thousands): | | | | | | | | | | | | | | | | | | | Financial Statement Classification | | December 31, 2021 | | December 31, 2020 | |
|
| Liabilities | | | | | | | Current operating lease liabilities | Other current liabilities | | $ | 1,978 | | | $ | 2,683 | | | Noncurrent operating lease liabilities | Other long term liabilities | | 397 | | | 2,815 | | | Total lease liabilities | | | $ | 2,375 | | | $ | 5,498 | |
|