There was a foiled terrorist attack in the Berlin subway, a lot of raw emotion and what seems to have been the end for a major character on Sunday’s Season 5 finale of Homeland. Amid all that, there was good news for the Showtime series ratingswise, and also some very good news for The Affair, which had its Season 2 ender Sunday too.

Airing just after 9 PM, the December 20 Homeland snagged 2.07 million total viewers and a 0.7 rating among adults 18-49. That means this year’s finale of the Claire Danes-led spy drama ticked up 17% over the Season 4 finale of December 21, 2014, in the key demo. It was also up 17% over its December 13 episode among adults 18-49.

Viewershipwise the Season 5 finale was pretty steady with last year’s ender with an 8% increase overall. Among adults 18-49 this year’s finale matches the result of the last episode of the first season of Homeland from December 18, 2011. That makes the Season 5 finale tied for the second-highest-rated ender the recently renewed show has had after the 0.9 rating of Seasons 2 and 3.

the affair Episode 212With a courtroom plea, The Affair ended its second season with a series and a season high. The drama starring Ruth Wilson and Dominic West drew 1.11 million viewers, with a 0.3 rating among the 18-49 demo. That viewership number is the best ever for the sophomore series, and the demo was the best it has done this season. The previous top viewership for The Affair was the 989,000 that its December 13 episode scored. Demo-to-demo, the 10 PM show was even with its Season 1 finale of December 21, 2014. Compared to its December 13 airing of last week, The Affair was up 41% among 18-49s.

Both Homeland and The Affair were renewed on December 9 and are expected back next fall.