Pakistan's fight with extremism would have been in better shape had the United States invested more in the nation's schools and not just its military, US Secretary of State Hillary Clinton said. The United States has pumped more than seven billion dollars into Pakistan's military since the September 11, 2001 attacks, which transformed the nation from Taliban backers into frontline US ally. In an interview with a US magazine to be published Sunday, Clinton said she had told Pakistan's former military leader Pervez Musharraf that more of the money should be going to education. She recalled a trip to a Pakistani village, where families hesitated to children -- particularly girls -- because the children would need to travel away to the closest school. "When I think about the extraordinarily accomplished Pakistanis in the professions, in medicine, in education, I think it is certainly the case that if Pakistan had invested more in the education of children so that poor families would not have sent their boys off to be educated by extremists, it might well have made a difference," Clinton said. "And it still can, because that's part of our approach now," she said. US lawmakers have voted to provide 7.5 billion dollars for Pakistan over the next five years -- largely in support for social development including building schools. President Barack Obama's administration has made the fight against Islamic extremism in Pakistan and neighboring Afghanistan a key foreign policy priority.