Year Ended December 31,
Year Ended December 31,
Year Ended December 31,
Year Ended December 31,
Year Ended December 31,
(In thousands)
2019
2018
2017
2019 % Change from 2018
2018 % Change from 2017
Revenue
$13,346
$(6,386)
$(13,383)
NM
(52.3%)
Gross profit
$(63,522)
$(86,228)
$(85,130)
(26.3%)
1.3%
Gross margin %
NM
NM
NM
Loss from operations
$(465,176)
$(539,237)
$(437,431)
(13.7%)
23.3%
Operating margin %
NM
NM
NM
unallocated amounts .
in determining revenue gross profit and income from operations for our segments we do not include in revenue the amortization of acquisition related deferred revenue adjustments which reflect the fair value adjustments to deferred revenues acquired in a business acquisition .
we also exclude the amortization of intangible assets stock-based compensation expense expenses not reflective of our core business and transaction-related costs and non-cash asset impairment charges from the operating segment data provided to our chief operating decision maker .
expenses not reflective of our core business relate to certain severance product consolidation legal consulting and other charges .
accordingly these amounts are not included in our reportable segment results and are included in the “ unallocated amounts ” category .
the “ unallocated amounts ” category also includes -i corporate general and administrative expenses -including marketing expenses and certain research and development expenses related to common solutions and resources that benefit all of our business units all of which are centrally managed and -ii revenue and the associated cost from the resale of certain ancillary products primarily hardware .
year ended december 31 2019 compared with the year ended december 31 2018 .
revenue from the resale of ancillary products primarily consisting of hardware is customer- and project-driven and as a result can fluctuate from period to period .
the increase in revenue for the year ended december 31 2019 compared to the prior year was primarily due to only $ 2 million in amortization of acquisition-related deferred revenue adjustments being recorded during 2019 compared to $ 24 .
3 million during 2018 .
gross unallocated expenses which represent the unallocated loss from operations excluding the impact of revenue totaled $ 478 million for the year ended december 31 2019 compared to $ 533 million for the year ended december 31 2018 .
the decrease was primarily the result of -i lower asset impairment and goodwill charges of $ 35 million -ii lower net transaction-related severance and legal expenses of $ 16 million and -iii lower acquisition related amortization of $ 1 million .
these were partially offset with $ 3 million in additional stock-based compensation expense .
year ended december 31 2018 compared with the year ended december 31 2017 .
revenue from the resale of ancillary products primarily consisting of hardware is customer and project driven and as a result can fluctuate from period to period .
revenue for the year ended december 31 2018 compared with the prior year improved primarily due to lower recognition of amortization of acquisition-related deferred revenue adjustments which reflect the fair value adjustments to deferred revenues acquired in the eis business practice fusion health grid and nanthealth provider / patient engagement acquisitions .
such adjustments totaled $ 24 million for the year ended december 31 2018 compared with $ 29 million for the year ended december 31 2017 .
gross unallocated expenses which represent the unallocated loss from operations excluding the impact of revenue totaled $ 533 million for the year ended december 31 2018 compared with $ 424 million for the prior year .
the increase in the year ended december 31 2018 compared with prior year was primarily driven by higher transaction-related severance and legal expenses primarily related to the acquisitions of the eis business practice fusion and health grid .
which included higher -i asset impairment charges of $ 58 million -ii goodwill impairment charges of $ 14 million -iii transaction-related severance and legal expenses of $ 30 million and -iv amortization of intangible and acquisition-related asset of $ 9 million .
the increase in amortization expense was primarily due to additional amortization expense associated with intangible assets acquired as part of business acquisitions completed since the third quarter of 2017 .

Question: What led to decrease in Gross unallocated expenses for the year ended December 31, 2019 compared to the prior year?
Answer: primarily the result of (i) lower asset impairment and goodwill charges of $35 million, (ii) lower net transaction-related severance and legal expenses of $16 million and (iii) lower acquisition related amortization of $1 million.