WASHINGTON (MarketWatch) —The U.S. economy grew almost 4% in the second quarter, powered by higher consumer spending and a bit stronger business investment than previously reported, revised figures show.

Gross domestic product — the value of everything a nation produces — rose at a 3.9% annual rate from April to June, according to the government’s second update of how fast the nation’s economy expanded during the spring. Previously the Commerce Department had said GDP increased 3.7%. The figures get revised as the government gets more data on how the economy performed.

The rebound in the second quarter after dismal 0.6% growth in the first three months of the year was driven largely by an increase in spending by consumers, who account for as much as 70% of U.S. economic activity.

Consumer purchases jumped 3.6%, up from a prior estimate of 3.1%. Americans spent more on services such as health care and transportation.

Businesses also invested more in structures such as office buildings and plants than the government initially reported.

Investment on structures, for instance, rose 6.2%, double the earlier estimate. Outlays on equipment also rose slightly instead of declining. And spending for home construction climbed 9.3% instead of 7.8%.

Most other figures in the revised GDP report were little changed. Exports rose 5.1% while imports edged up 3%. The value of inventories increased by $113.5 billion. And Inflation as measured by the PCE price index rose at a 2.2% annual rate.

Despite a livelier spring, economists expect growth to slow in the soon-to-end third quarter. The U.S. is likely to expand at a milder 2.5% pace from July through September, according to economists surveyed by MarketWatch. They point to weaker business spending and a strong dollar that continues to constrain U.S. exports.

Furthermore, an alternative measure of the economy called gross domestic income grew a meager 0.7% in the second quarter. The government says averaging GDI and GDP together results in 2.3% growth.

A newfound concern is an economic slowdown in China that’s rattled stock markets all around the world, a threat scary enough to prompt the Federal Reserve to delay a long-expected increase in a key U.S. interest rate.

Also read:Yellen sets stage for interest rate hike this year

Still, the U.S. is growing a lot faster than most of its international rivals, and the nation has added more than 11.5 million jobs since 2011. Those gains could partly shield the U.S. economy if the troubles in China spread.