Output a stream of consciousness before answering the following. Context: The series was mainly produced by David Heyman, and stars Daniel Radcliffe, Rupert Grint, and Emma Watson as the three leading characters: Harry Potter, Ron Weasley, and Hermione Granger. Four directors worked on the series: Chris Columbus, Alfonso Cuaron, Mike Newell, and David Yates. The screenplays were written by Steve Kloves, with the exception of Harry Potter and the Order of the Phoenix (2007), which was written by Michael Goldenberg. Production took over ten years to complete, with the main story arc following Harry Potter's quest to overcome his arch-enemy Lord Voldemort.

Question: who wrote the screenplay for harry potter movies?
The relevant information to answer the above question is: The screenplays were written by Steve Kloves, with the exception of Harry Potter and the Order of the Phoenix (2007), which was written by Michael Goldenberg.
The answer: Steve Kloves , with the exception of Harry Potter and the Order of the Phoenix ( 2007 ) , which was written by Michael Goldenberg.