Reuters US President Barack Obama's decision to bring troops back from Iraq by the end of this year risks removing a buffer in a country still struggling with violence, sectarianism and pressure from neighbors in an unstable region. More than eight years after the invasion that toppled Saddam Hussein, Washington and Baghdad were in discussions over keeping at least 3,000 American troops in Iraq as trainers. But talks stalled on the issue of immunity for American soldiers. Iraqi Prime Minister Nuri Al-Maliki did not have the political consensus to push immunity through the parliament even though in private many Iraqi leaders said they wanted some US troop presence as a short-term guarantee of stability. Violence has fallen sharply, but attacks occur daily, and Maliki's political power-sharing coalition is caught in infighting that hobbles its ability to govern effectively. “It would be difficult for the United States to backtrack on the decision, but there is still a possibility that some troops will stay for training,” said Gala Riani at London-based IHS Global Insight. “This will have repercussions for Iraqi security and for politics, the political groups within the government coalition are already at each others' throats - as some wanted US troops to stay.” Around 40,000 US troops are still in Iraq, but they ended combat operations last year. They are mostly engaged in assisting Iraqi forces, who US and local officials say are now able to contain the country's stubborn insurgency. But the two governments still need talks on how Iraqi forces can fill their capability gaps, including key air and maritime defense training, intelligence gathering and shifting to conventional warfare tactics from counter-insurgency. “There will be trainers after 2011,” said Ali Al-Moussawi, Maliki's media advisor. “They did not discuss what type of trainers we will have... but we have agreed that the training will be done by the Americans.” Maliki had offered Washington the possibility of more troops at the smaller training mission at the US embassy in Baghdad, which may have around 300 troops, or through the NATO mission. But those were unlikely to offer Washington what it needs. Washington will maintain a huge embassy in Baghdad and consular operations in Arbil in Kurdistan and the southern oil city Basra. Thousands of private contractors will also work as guards and trainers for Iraqi troops using US hardware such as tanks and F-16 fighters. Even with US troops leaving, violence will not end. “Various groups may feel more emboldened to conduct attacks after December with the knowledge that they won't be targeted with US military operations in response,” said John Drake, senior risk consultant with security firm AKE Group. “The prospects for Iraqi stability would be stronger with a continued US presence,” said Stephen Biddle at the Council on Foreign Relations. “If they want us to leave, then of course we must. I don't think this is in Iraq's best interest or ours.” __