Stocks closed lower for the second day straight, dragged down by losses in technology companies and banks and more in Wednesday’s Stock Market Update.

Energy companies also fell Wednesday as the price of crude oil continued to decline. Investors shifted money into safer holdings after more than a week of aggressive buying.

Health care, utilities and industrial companies were among the gainers. Johnson & Johnson gained 1.3%, Exelon rose 2.5% and American Airlines Group added 1.7%.

The latest decline follows a broad drop in stocks the day before after five days of gains. The shift in momentum came after a rally last week set off by the Federal Reserve’s signal that it is willing to cut interest rates to help stabilize the economy if the U.S. trade war with China starts to crimp growth. Investors are increasingly worried that the dispute will drag on much longer than expected.

Technology companies accounted for much of the market’s slide Wednesday. The sector has been under the most pressure from swings in sentiment over the trade dispute between the U.S. and China. Cisco Systems fell 2.1% and Micron Technology dropped 5.4%.

Banks were also among the biggest decliners as bond prices rose, nudging yields lower. The yield on the 10-year Treasury note fell to 2.12% from 2.14% late Tuesday. Lower yields pull down interest rates on loans, reducing banks’ profits. Bank Of America dropped 1% and Citigroup fell 1.5%.

Investors will likely have to deal with more volatility ahead of an economic summit later this month. President Donald Trump has said he plans to meet with Chinese President Xi Jinping at the Group of 20 summit in Osaka, Japan.

STOCK MARKET UPDATE

KEEPING SCORE: The S&P 500 index fell 5 points, or 0.2%, to 2,879. The Dow Jones Industrial Average fell 43 points, or 0.2%, to 26,004. The Nasdaq fell 29 points, or 0.4%, to 7,792.

Major indexes in Europe fell broadly.

ANALYST’S TAKE: The slide in the market reflects heightened investor uncertainty over trade and its impact on the economy.

President Donald Trump’s decision to threaten an expansion of the trade war to Mexico made a jittery market even more uneasy. Those potential tariffs have been indefinitely postponed, but the move left its mark.

“This was a game changer, the idea that the administration would use tariffs to further policy that is not related to trade is concerning,” said Kristina Hooper, chief global market strategist at Invesco.

Investors are now in the midst of a “waiting game” ahead of additional economic data later this week and next week’s Federal Reserve meeting. The market will likely lack much direction until then, she said.

POOR PLAY: Dave & Buster’s Entertainment plunged 22.3% after the company gave investors a dismal first quarter financial report and slashed its revenue forecast for the year.

The company behind the restaurant and arcade chain Dave & Buster’s missed Wall Street’s profit and revenue forecasts. Sales at established locations fell far short of expectations. Food and beverage sales did especially poorly.

DISCOUNT DATA: Medidata Solutions slid 3.5% after the company announced a deal to be acquired at a discount price to French software company Dassault Systems.

The deal values Medidata at $92.25 per share, less than its closing price of $94.75 on Tuesday.

Medidata provides cloud-based services and software to help medical and pharmaceutical companies manage data and track clinical trials. Its clients include top drugmakers. It has 16 offices across seven countries.

© The Associated Press. All rights reserved.