WASHINGTON (AP) — Moving to tamp down a public uproar spurred by the disclosure of two secret surveillance programs, the nation’s top intelligence official is declassifying key details about one of the programs while insisting the efforts to collect America’s phone records and the U.S. internet use of foreign nationals overseas were legal, limited in scope and necessary to detect terrorist threats.

Director of National Intelligence James Clapper, in an unusual late-night statement Thursday, denounced the leaks of highly classified documents that revealed the programs and warned that America’s security will suffer. He called the disclosure of a program that targets foreigners’ Internet use "reprehensible," and said the leak of another program that lets the government collect Americans’ phone records would change America’s enemies behavior and make it harder to understand their intentions.