equipment and supplies , which consists of reselling printing , imaging , and related equipment to customers primarily to architectural , engineering and construction firms . we have expanded our business beyond the services we traditionally provided to the architectural , engineering , construction , and building owner/operator ( aec/o ) industry in the past and are currently focused on growing mps , aim and cdim , as we believe the mix of services demanded by the aec/o industry continues to shift toward document management at customer locations and in the cloud , and away from its historical emphasis on large-format construction drawings produced “ offsite ” in our service centers . we deliver our services via the cloud , through a nationwide network of service centers , regionally-based technical specialists , locally-based sales executives , and a national/regional sales force known as global solutions . based on our analysis of our operating results , we estimate that sales to the aec/o industry accounted for approximately 78 % of our net sales for 2017 , with the remaining 22 % consisting of sales to businesses outside of construction . 21 costs and expenses our cost of sales consists primarily of materials ( paper , toner and other consumables ) , labor , and “ indirect costs ” which consist primarily of equipment expenses related to our mps contracts and our service center facilities . facilities and equipment expenses include maintenance , repairs , rents , insurance , and depreciation . paper is the largest component of our material cost ; however , paper pricing typically does not significantly affect our operating margins due , in part , to our efforts to pass increased costs on to our customers . we closely monitor material cost as a percentage of net sales to measure volume and waste . we also track labor utilization , or net sales per employee , to measure productivity and determine staffing levels . we maintain low levels of inventory . historically , our capital expenditure requirements have varied due to the cost and availability of capital lease lines of credit . our relationships with credit providers has provided attractive lease rates over the past two years , and as a result , we chose to lease rather than purchase equipment in a significant portion of our engagements . research and development costs consist mainly of the salaries , leased building space , and computer equipment that comprises our data storage and development centers in fremont , california and kolkata , india . such costs are primarily recorded to cost of sales . 22 results of operations replace_table_token_4_th ( 1 ) column does not foot due to rounding . ( 2 ) see `` non-gaap financial measures `` following `` results of operations `` for more information related to our non-gaap disclosures . 23 the following table provides information on the percentages of certain items of selected financial data as a percentage of net sales for the periods indicated : replace_table_token_5_th ( 1 ) column does not foot due to rounding . ( 2 ) see `` non-gaap financial measures `` following `` results of operations `` for more information related to our non-gaap disclosures . fiscal year ended december 31 , 2017 compared to fiscal year ended december 31 , 2016 net sales net sales in 2017 decrease d 2.9 % , compared to 2016 . the decrease in net sales was due primarily to declines in our print-based service offerings . cdim . cdim services in 2017 decrease d $ 7.4 million , or 3.5 % , compared to 2016 . the decrease in sales of cdim services was primarily due to the continued but moderating reduction in demand for printed construction drawings and related services driven by the ongoing adoption of technology replacing traditional print-based service offerings , and softness in our color imaging sales . also contributing to the decline in sales of cdim for the year was the extended closure of our service centers in the southeastern u.s. which were impacted by hurricanes during the third quarter of 2017. cdim services represented 52 % of total net sales for both 2017 and 2016 . mps . mps services in 2017 decrease d $ 2.3 million or 1.7 % , due to the decline in print volumes from existing customers . the decline in print volumes was driven in part by the continued optimization of our customers ' in-house print environment partially offset by new customer acquisitions . our mps offering delivers value to its customers by optimizing their print infrastructure , which in turn , will lower their print volume over time . sales reductions associated with a decline in print volume are typically offset by new customer acquisitions and expansion of mps services within existing customers . revenues from mps services sales represented approximately 33 % of total net sales for 2017 , compared to approximately 32 % during 2016 . the number of mps accounts has grown to approximately 10,100 as of december 31 , 2017 , an increase of approximately 700 locations compared to december 31 , 2016 . while mps is subject to temporary performance fluctuations based on the loss or acquisition of large clients , we believe there is an opportunity for mps sales growth in the future due to the value that we bring to our customers and the desire to reduce costs in the aec/o industry . 24 aim . year-over-year sales of aim services decreased by $ 1.3 million , or 9.0 % , in 2017 , compared to 2016 . the sales decline was primarily driven by a reorganization in our sales staff which we believe caused a temporary decline in aim sales during 2017. we are driving an expansion of our addressable market for aim by targeting building owners and facilities managers that require on-demand legacy documents to operate their assets efficiently . equipment and supplies sales . story_separator_special_tag the adjustment of ebitda for these items is consistent with the definition of adjusted ebitda in our credit agreement ; therefore , we believe this information is useful to investors in assessing our financial performance . the following is a reconciliation of cash flows provided by operating activities to ebitda : replace_table_token_7_th 29 the following is a reconciliation of net ( loss ) income attributable to arc document solutions , inc. shareholders to ebitda and adjusted ebitda : replace_table_token_8_th the following is a reconciliation of net ( loss ) income margin attributable to arc to ebitda margin and adjusted ebitda margin : replace_table_token_9_th ( 1 ) column does not foot due to rounding . 30 the following is a reconciliation of ebitda to net income ( loss ) for each respective quarter . replace_table_token_10_th the following is a reconciliation of net ( loss ) income attributable to arc document solutions , inc. shareholders to adjusted net income and adjusted earnings per share attributable to arc document solutions , inc. shareholders : replace_table_token_11_th liquidity and capital resources our principal sources of cash have been operations and borrowings under our debt and lease agreements . our recent historical uses of cash have been for ongoing operations , payment of principal and interest on outstanding debt obligations , capital expenditures and stock repurchases . total cash and cash equivalents as of december 31 , 2017 was $ 28.1 million . of this amount , $ 14.6 million was held in foreign countries , with $ 11.9 million held in china . repatriation of some of our cash and cash equivalents in foreign countries could be subject to delay for local country approvals and could have potential adverse tax consequences . as a result of holding cash and cash equivalents outside of the u.s. , our financial flexibility may be reduced . 31 supplemental information pertaining to our historical sources and uses of cash is presented as follows and should be read in conjunction with our consolidated statements of cash flows and notes thereto included elsewhere in this report . replace_table_token_12_th operating activities cash flows from operations are primarily driven by sales and net profit generated from these sales , excluding non-cash charges . the decrease in cash flows from operations in 2017 was primarily as a result of the decline in profitability , partially offset by the timing of sales and cash collections as well as the timing of cash outlays related to accounts payable and accrued expenses . days sales outstanding ( “ dso ” ) decreased to 53 days as of december 31 , 2017 from 55 days as of december 31 , 2016. we continue our focus on the timely collection of our accounts receivable . the overall decrease in cash flows from operations in 2016 was primarily as a result of the decline in profitability , as well as the timing of sales and cash collections , partially offset by the timing of cash outlays related to accounts payable and accrued expenses and the reduction in our interest expense resulting from the reduction in principal of our credit agreement . investing activities net cash used in investing activities was primarily related to capital expenditures . we incurred capital expenditures totaling $ 9.1 million , $ 12.1 million , and $ 14.2 million in 2017 , 2016 , and 2015 , respectively . the change in capital expenditures from 2016 to 2017 is driven by the timing of equipment purchases , and whether such equipment is leased or purchased with available cash . the decrease in capital expenditures from 2015 to 2016 , was primarily due to our decision to purchase more equipment in the second and third quarters of 2015 rather than leasing equipment to take advantage of vendor rebates . as we continue to foster our relationships with credit providers and obtain attractive lease rates , we have increasingly chosen to lease rather than purchase equipment . financing activities net cash of $ 42.1 million used in financing activities in 2017 primarily relates to payments on our debt agreements and capital leases . the company amended its credit agreement in the third quarter of 2017 resulting in a decrease in required quarterly principal payments on the term loan facility under the credit agreement . in addition , the amendment to the credit agreement increased the maximum aggregate principal amount of revolving loans from $ 30.0 million to $ 80.0 million , and reduced the outstanding principal amount of the term loan under the agreement at $ 60.0 million , although the total principal amount outstanding remained unchanged at $ 110.0 million on the date of the amendment . prior to entering into the amendment to our credit agreement in the third quarter of 2017 , we had paid $ 68.2 million in aggregate principal on our credit agreement . principal prepayments on the credit agreement of $ 14.2 million in 2017 resulted in a loss on extinguishment and modification of debt of $ 0.2 million for 2017 . in addition , we purchased approximately 1.2 million shares of our company 's outstanding common stock for $ 3.4 million pursuant to our stock repurchase program in 2017 . our cash position , working capital , and debt obligations as of december 31 , 2017 and 2016 are shown below and should be read in conjunction with our consolidated balance sheets and notes thereto contained elsewhere in this report . 32 replace_table_token_13_th ( 1 ) net of deferred financing fees of $ 757 and $ 1,039 at december 31 , 2017 and 2016 , respectively . ( 2 ) includes $ 42.3 million of revolving loans outstanding under our credit agreement at december 31 , 2017 . the decrease of $ 5.3 million in working capital in 2017 was primarily due to an increase in the current portion of long-term debt driven by the amendment to our credit agreement in the third quarter of 2017. to manage our working capital

debt obligations credit agreement on july 14 , 2017 , we amended our credit agreement which was originally entered into on november 20 , 2014 with wells fargo bank , national association , as administrative agent and the lenders party thereto ( the `` credit agreement '' ) . prior to being amended , the credit agreement provided for the extension of term loans ( “ term loans ” ) in an aggregate principal amount of $ 175.0 million . in addition , prior to being amended , the credit agreement provided for the extension of revolving loans ( “ revolving loans ” ) in an aggregate principal amount not to exceed $ 30.0 million . the amendment increased the maximum aggregate principal amount of revolving loans under the agreement from $ 30 million to $ 80 million and reduced the outstanding principal amount of the term loan under the agreement to $ 60 million . upon the execution of the amendment to the credit agreement , the total principal amount outstanding under the agreement remained unchanged at $ 110.0 million . as a result of the amendment to the credit agreement , the principal of the term loan amortizes at an annual rate of 7.5 % during the first and second years following the date of the amendment and at an annual rate of 10 % during the third , fourth and fifth years following the date of the amendment , with any remaining balance payable upon the maturity date . the amendment also extended the maturity date for both the revolving loans and the term loans until july 14 , 2022. as of december 31 , 2017 , the company 's borrowing availability of revolving loans under the $ 80.0 million revolving loan commitment was $ 35.9 million , after deducting outstanding letters of credit of $ 1.8 million and an outstanding revolving loan balance of $ 42.3 million .


 Write a concise suspicious activity report of the following text delimited by triple backquotes. Return your response as a formal report which covers the key points highlighting the location,dates,entity names and account holder information in chronological order of the text.
     ```debt obligations credit agreement on july 14 , 2017 , we amended our credit agreement which was originally entered into on november 20 , 2014 with wells fargo bank , national association , as administrative agent and the lenders party thereto ( the `` credit agreement '' ) . prior to being amended , the credit agreement provided for the extension of term loans ( “ term loans ” ) in an aggregate principal amount of $ 175.0 million . in addition , prior to being amended , the credit agreement provided for the extension of revolving loans ( “ revolving loans ” ) in an aggregate principal amount not to exceed $ 30.0 million . the amendment increased the maximum aggregate principal amount of revolving loans under the agreement from $ 30 million to $ 80 million and reduced the outstanding principal amount of the term loan under the agreement to $ 60 million . upon the execution of the amendment to the credit agreement , the total principal amount outstanding under the agreement remained unchanged at $ 110.0 million . as a result of the amendment to the credit agreement , the principal of the term loan amortizes at an annual rate of 7.5 % during the first and second years following the date of the amendment and at an annual rate of 10 % during the third , fourth and fifth years following the date of the amendment , with any remaining balance payable upon the maturity date . the amendment also extended the maturity date for both the revolving loans and the term loans until july 14 , 2022. as of december 31 , 2017 , the company 's borrowing availability of revolving loans under the $ 80.0 million revolving loan commitment was $ 35.9 million , after deducting outstanding letters of credit of $ 1.8 million and an outstanding revolving loan balance of $ 42.3 million .
```    
 Suspicious Activity Report : equipment and supplies , which consists of reselling printing , imaging , and related equipment to customers primarily to architectural , engineering and construction firms . we have expanded our business beyond the services we traditionally provided to the architectural , engineering , construction , and building owner/operator ( aec/o ) industry in the past and are currently focused on growing mps , aim and cdim , as we believe the mix of services demanded by the aec/o industry continues to shift toward document management at customer locations and in the cloud , and away from its historical emphasis on large-format construction drawings produced “ offsite ” in our service centers . we deliver our services via the cloud , through a nationwide network of service centers , regionally-based technical specialists , locally-based sales executives , and a national/regional sales force known as global solutions . based on our analysis of our operating results , we estimate that sales to the aec/o industry accounted for approximately 78 % of our net sales for 2017 , with the remaining 22 % consisting of sales to businesses outside of construction . 21 costs and expenses our cost of sales consists primarily of materials ( paper , toner and other consumables ) , labor , and “ indirect costs ” which consist primarily of equipment expenses related to our mps contracts and our service center facilities . facilities and equipment expenses include maintenance , repairs , rents , insurance , and depreciation . paper is the largest component of our material cost ; however , paper pricing typically does not significantly affect our operating margins due , in part , to our efforts to pass increased costs on to our customers . we closely monitor material cost as a percentage of net sales to measure volume and waste . we also track labor utilization , or net sales per employee , to measure productivity and determine staffing levels . we maintain low levels of inventory . historically , our capital expenditure requirements have varied due to the cost and availability of capital lease lines of credit . our relationships with credit providers has provided attractive lease rates over the past two years , and as a result , we chose to lease rather than purchase equipment in a significant portion of our engagements . research and development costs consist mainly of the salaries , leased building space , and computer equipment that comprises our data storage and development centers in fremont , california and kolkata , india . such costs are primarily recorded to cost of sales . 22 results of operations replace_table_token_4_th ( 1 ) column does not foot due to rounding . ( 2 ) see `` non-gaap financial measures `` following `` results of operations `` for more information related to our non-gaap disclosures . 23 the following table provides information on the percentages of certain items of selected financial data as a percentage of net sales for the periods indicated : replace_table_token_5_th ( 1 ) column does not foot due to rounding . ( 2 ) see `` non-gaap financial measures `` following `` results of operations `` for more information related to our non-gaap disclosures . fiscal year ended december 31 , 2017 compared to fiscal year ended december 31 , 2016 net sales net sales in 2017 decrease d 2.9 % , compared to 2016 . the decrease in net sales was due primarily to declines in our print-based service offerings . cdim . cdim services in 2017 decrease d $ 7.4 million , or 3.5 % , compared to 2016 . the decrease in sales of cdim services was primarily due to the continued but moderating reduction in demand for printed construction drawings and related services driven by the ongoing adoption of technology replacing traditional print-based service offerings , and softness in our color imaging sales . also contributing to the decline in sales of cdim for the year was the extended closure of our service centers in the southeastern u.s. which were impacted by hurricanes during the third quarter of 2017. cdim services represented 52 % of total net sales for both 2017 and 2016 . mps . mps services in 2017 decrease d $ 2.3 million or 1.7 % , due to the decline in print volumes from existing customers . the decline in print volumes was driven in part by the continued optimization of our customers ' in-house print environment partially offset by new customer acquisitions . our mps offering delivers value to its customers by optimizing their print infrastructure , which in turn , will lower their print volume over time . sales reductions associated with a decline in print volume are typically offset by new customer acquisitions and expansion of mps services within existing customers . revenues from mps services sales represented approximately 33 % of total net sales for 2017 , compared to approximately 32 % during 2016 . the number of mps accounts has grown to approximately 10,100 as of december 31 , 2017 , an increase of approximately 700 locations compared to december 31 , 2016 . while mps is subject to temporary performance fluctuations based on the loss or acquisition of large clients , we believe there is an opportunity for mps sales growth in the future due to the value that we bring to our customers and the desire to reduce costs in the aec/o industry . 24 aim . year-over-year sales of aim services decreased by $ 1.3 million , or 9.0 % , in 2017 , compared to 2016 . the sales decline was primarily driven by a reorganization in our sales staff which we believe caused a temporary decline in aim sales during 2017. we are driving an expansion of our addressable market for aim by targeting building owners and facilities managers that require on-demand legacy documents to operate their assets efficiently . equipment and supplies sales . story_separator_special_tag the adjustment of ebitda for these items is consistent with the definition of adjusted ebitda in our credit agreement ; therefore , we believe this information is useful to investors in assessing our financial performance . the following is a reconciliation of cash flows provided by operating activities to ebitda : replace_table_token_7_th 29 the following is a reconciliation of net ( loss ) income attributable to arc document solutions , inc. shareholders to ebitda and adjusted ebitda : replace_table_token_8_th the following is a reconciliation of net ( loss ) income margin attributable to arc to ebitda margin and adjusted ebitda margin : replace_table_token_9_th ( 1 ) column does not foot due to rounding . 30 the following is a reconciliation of ebitda to net income ( loss ) for each respective quarter . replace_table_token_10_th the following is a reconciliation of net ( loss ) income attributable to arc document solutions , inc. shareholders to adjusted net income and adjusted earnings per share attributable to arc document solutions , inc. shareholders : replace_table_token_11_th liquidity and capital resources our principal sources of cash have been operations and borrowings under our debt and lease agreements . our recent historical uses of cash have been for ongoing operations , payment of principal and interest on outstanding debt obligations , capital expenditures and stock repurchases . total cash and cash equivalents as of december 31 , 2017 was $ 28.1 million . of this amount , $ 14.6 million was held in foreign countries , with $ 11.9 million held in china . repatriation of some of our cash and cash equivalents in foreign countries could be subject to delay for local country approvals and could have potential adverse tax consequences . as a result of holding cash and cash equivalents outside of the u.s. , our financial flexibility may be reduced . 31 supplemental information pertaining to our historical sources and uses of cash is presented as follows and should be read in conjunction with our consolidated statements of cash flows and notes thereto included elsewhere in this report . replace_table_token_12_th operating activities cash flows from operations are primarily driven by sales and net profit generated from these sales , excluding non-cash charges . the decrease in cash flows from operations in 2017 was primarily as a result of the decline in profitability , partially offset by the timing of sales and cash collections as well as the timing of cash outlays related to accounts payable and accrued expenses . days sales outstanding ( “ dso ” ) decreased to 53 days as of december 31 , 2017 from 55 days as of december 31 , 2016. we continue our focus on the timely collection of our accounts receivable . the overall decrease in cash flows from operations in 2016 was primarily as a result of the decline in profitability , as well as the timing of sales and cash collections , partially offset by the timing of cash outlays related to accounts payable and accrued expenses and the reduction in our interest expense resulting from the reduction in principal of our credit agreement . investing activities net cash used in investing activities was primarily related to capital expenditures . we incurred capital expenditures totaling $ 9.1 million , $ 12.1 million , and $ 14.2 million in 2017 , 2016 , and 2015 , respectively . the change in capital expenditures from 2016 to 2017 is driven by the timing of equipment purchases , and whether such equipment is leased or purchased with available cash . the decrease in capital expenditures from 2015 to 2016 , was primarily due to our decision to purchase more equipment in the second and third quarters of 2015 rather than leasing equipment to take advantage of vendor rebates . as we continue to foster our relationships with credit providers and obtain attractive lease rates , we have increasingly chosen to lease rather than purchase equipment . financing activities net cash of $ 42.1 million used in financing activities in 2017 primarily relates to payments on our debt agreements and capital leases . the company amended its credit agreement in the third quarter of 2017 resulting in a decrease in required quarterly principal payments on the term loan facility under the credit agreement . in addition , the amendment to the credit agreement increased the maximum aggregate principal amount of revolving loans from $ 30.0 million to $ 80.0 million , and reduced the outstanding principal amount of the term loan under the agreement at $ 60.0 million , although the total principal amount outstanding remained unchanged at $ 110.0 million on the date of the amendment . prior to entering into the amendment to our credit agreement in the third quarter of 2017 , we had paid $ 68.2 million in aggregate principal on our credit agreement . principal prepayments on the credit agreement of $ 14.2 million in 2017 resulted in a loss on extinguishment and modification of debt of $ 0.2 million for 2017 . in addition , we purchased approximately 1.2 million shares of our company 's outstanding common stock for $ 3.4 million pursuant to our stock repurchase program in 2017 . our cash position , working capital , and debt obligations as of december 31 , 2017 and 2016 are shown below and should be read in conjunction with our consolidated balance sheets and notes thereto contained elsewhere in this report . 32 replace_table_token_13_th ( 1 ) net of deferred financing fees of $ 757 and $ 1,039 at december 31 , 2017 and 2016 , respectively . ( 2 ) includes $ 42.3 million of revolving loans outstanding under our credit agreement at december 31 , 2017 . the decrease of $ 5.3 million in working capital in 2017 was primarily due to an increase in the current portion of long-term debt driven by the amendment to our credit agreement in the third quarter of 2017. to manage our working capital

