on his second day in office, carter pardoned all the vietnam war draft evaders. during carter's term as president, he created the department of energy and the department of education. he also created a national energy policy that included conservation, price control, and new technology. in foreign affairs, carter helped create the camp david accords, the panama canal treaties, the strategic arms limitation talks (salt ii), and the return of the panama canal zone to panama. however, the economy during his presidency was bad as it had stagflation, high inflation, high unemployment and slow economic growth. the end of his presidential term was remembered by the 1979–1981 iran hostage crisis, the 1979 energy crisis, the three mile island nuclear accident, and the soviet invasion of afghanistan.