September 30,
September 30,
2019
2018
Land and land improvements
$  7,348
$  13,132
Buildings and improvements
48,191
57,959
Machinery and other equipment
107,297
81,727
Software
108,526
84,631
Leasehold improvements
17,064
11,991
Construction and internal-use software development in progress
16,814
12,888
Accumulated depreciation and amortization
(160,271)
(144,782)
$  144,969
$  117,546
note 9 — property plant and equipment .
significant components of property plant and equipment are as follows -in thousands : .
in fiscal 2019 we entered into agreements related to the construction and leasing of two buildings on our existing corporate campus in san diego california .
under these agreements a financial institution will own the buildings and we will lease the property for a term of five years upon their completion .
in the third quarter of fiscal 2019 we sold the land and buildings comprising our separate cts campus in san diego .
we have entered into a lease with the buyer of this campus and cts employees will continue to occupy this separate campus until the new buildings on our corporate campus are ready for occupancy in fiscal 2021 .
in the third quarter of fiscal 2019 we also sold land and buildings in orlando florida and we are entering a lease for new space in orlando to accommodate our employees and operations in orlando .
in connection with the sale of these real estate campuses we received total net proceeds of $ 44 .
9 million and recognized net gains on the sales totaling $ 32 .
5 million .
as a part of our efforts to upgrade our current information systems early in fiscal 2015 we purchased new enterprise resource planning -erp software and began the process of designing and configuring this software and other software applications to manage our operations .
costs incurred in the development of internal-use software and software applications including external direct costs of materials and services and applicable compensation costs of employees devoted to specific software development are capitalized as computer software costs .
costs incurred outside of the application development stage or that are types of costs that do not meet the capitalization requirements are expensed as incurred .
amounts capitalized are included in property plant and equipment and are amortized on a straight-line basis over the estimated useful life of the software which ranges from three to seven years .
no amortization expense is recorded until the software is ready for its intended use .
through september 30 2019 we have incurred costs of $ 138 .
9 million related to the purchase and development of our erp system including $ 3 .
1 million $ 22 .
5 million and $ 40 .
6 million of costs incurred during fiscal years 2019 2018 and 2017 respectively .
we have capitalized $ 1 .
6 million $ 7 .
5 million and $ 16 .
7 million of qualifying software development costs as internal-use software development in progress during fiscal years 2019 2018 and 2017 respectively .
we have recognized expense for $ 1 .
5 million $ 15 .
0 million and $ 23 .
9 million of these costs in fiscal years 2019 2018 and 2017 respectively for costs that did not qualify for capitalization .
amounts that were expensed in connection with the development of these systems are classified within selling general and administrative expenses in the consolidated statements of operations .
various components of our erp system became ready for their intended use and were placed into service at various times from fiscal 2016 through fiscal 2019 .
as each component became ready for its intended use the component ’ s costs were transferred into completed software and we began amortizing these costs over their seven-year estimated useful life using the straight-line method .
we continue to capitalize costs associated with the development of other erp components that are not yet ready for their intended use .
our provisions for depreciation of plant and equipment and amortization of leasehold improvements and software amounted to $ 22 .
6 million $ 19 .
5 million and $ 17 .
8 million in 2019 2018 and 2017 respectively .
generally we use straight-line methods for depreciable real property over estimated useful lives ranging from 15 to 39 years or for leasehold improvements the term of the underlying lease if shorter than the estimated useful lives .
we typically use accelerated methods -declining balance for machinery and equipment and software other than our erp system over estimated useful lives ranging from 5 to 10 years .

Question: In which years were the incurred costs related to the purchase and development of the ERP system recorded?
Answer: 2019 2018 2017