A small recovery in commodities and a rally in companies that make consumer staples like toilet paper and pasta helped financial markets reverse a decline Thursday to end the day with modest gains.
The Dow Jones industrial average rose 65.89 points, or 0.5 percent, to close at 12,695.92.
The Standard & Poor's 500 index rose 6.57, or 0.5 percent, to 1,348.65.
The Nasdaq composite rose 17.98, or 0.6 percent, 2,836.04.
For the week:
The Dow is up 57.18 points, or 0.5 percent.
The S&P is up 8.45, or 0.6 percent.
The Nasdaq is up 35.48, or 1.3 percent.
For the year to date:
The Dow is up 1,118.41, or 9.7 percent.
The S&P is up 91.01, or 7.2 percent.
The Nasdaq is up 210.17, or 7.9 percent.