Eternal Sunshine of the Spotless Mind and Sideways have been given top script awards by the main US association of TV and film screenwriters.
Eternal Sunshine stars Kate Winslet and Jim Carrey
Eternal Sunshine, a trip through the minds of lovers Jim Carrey and Kate Winslet, won best original screenplay at the Writers Guild of America Awards.
And Sideways, a bittersweet comedy about two men in mid-life crisis, won best adapted screenplay on Saturday.
The awards could point towards possible success at next week's Oscars.
Eternal Sunshine, written by Charlie Kaufman, is nominated for original screenplay at the Oscars.
Sideways is nominated for a total of five Academy Awards
Sideways, by Alexander Payne and Jim Taylor, is up for best adapted screenplay among its total of five nominations.
At the Writers Guild ceremony in Hollywood, Eternal Sunshine beat off competition from The Aviator, Garden State, Hotel Rwanda and Kinsey.
And Sideways triumphed over Million Dollar Baby, The Motorcycle Diaries, Before Sunset and Mean Girls.
Aids mini-series Angels in America, political drama The West Wing and sitcoms Arrested Development and Malcolm in the Middle all picked up awards in the television categories.
Last year's film winners were Sofia Coppola for her original screenplay for Lost in Translation and American Splendor for best adapted screenplay.