Thousands of veterans who were forced to pay back the millions of dollars in bonuses they’d gotten for reenlisting to fight in Iraq and Afghanistan will get their money back.

The Pentagon announced Tuesday it has set up a process to reimburse or eliminate the debts of some 17,000 members of the California Army National Guard who got the bonuses between 2004 and 2010.