Stocks are closing with small gains, avoiding a third straight decline, the AP reports. Technology and internet stocks led the winners Tuesday. Twitter rose 3.3% and Advanced Micro Devices rose 3.5%. Industrial companies and consumer products were the laggards. 3M fell 2% and Procter & Gamble lost 1%. Acacia Communications jumped 35% after the company agreed to be acquired by Cisco Systems. The S&P 500 index rose 3 points, or 0.1%, to 2,979. The Nasdaq gained 43 points, or 0.5%, to 8,141. The Dow Jones industrials lost 22 points, or 0.1%, to 26,783, partly due to the loss for 3M. The market's movements have lacked conviction this week as investors await two days of congressional testimony by Fed Chair Jay Powell.