WASHINGTON (AP) — Newly declassified files say the National Security Agency reported its own violations of surveillance rules to a U.S. intelligence court and promised additional safety measures to prevent similar missteps over and over again.

Court records from 2009 say that after repeated assurances the NSA would obey the court's rules, it acknowledged that it had collected material improperly.

In one case it blamed "poor management, lack of involvement by compliance officials and lack of internal verification procedures, not by bad faith."