pre_text: ADVANCED ENERGY INDUSTRIES, INC. NOTES TO CONSOLIDATED FINANCIAL STATEMENTS – (continued) (in thousands, except per share amounts) NOTE 5. INCOME TAXES The geographic distribution of pretax income from continuing operations is as follows:
table: Years Ended December 31,
table: 2019 2018 2017
table: Domestic $(20,597) $22,325 $29,088
table: Foreign 87,791 150,051 169,103
table: Total $67,194 $172,376 $198,191
question: Analyse this data from a financial earnings document. What was the change in domestic pretax income between 2018 and 2017?