Partnering with defense contracting giant General Dynamics apparently wasn’t enough to keep Smith & Wesson’s M&P pistol in the running to win the U.S. military XM-17 contract to replace the venerable Beretta M9.

The U.S. Army has cut Smith & Wesson from its competition to replace the Beretta M9 as its standard-issue sidearm.

The Army’s hunt for a company that can make its upcoming Modular Handgun System by 2018 has been narrowed down to just a few gun makers, such as Glock and Sig Sauer.

The Pentagon told Smith & Wesson and partner General Dynamics of its decision late Friday.