ABC Family and Fox have earned top marks in GLAAD’s annual report on the quantity and quality of LGBT images on television, with Fox becoming the first major broadcast network to receive an “excellent” grade in the Network Responsibility Index’s nine-year history.

GLAAD released its latest NRI on Thursday, examining original primetime programming on the five broadcast networks and on 10 cable channels between June 1, 2014 and May 31, 2015.

ABC, CW, FX, HBO, MTV, and Showtime received “good” grades; CBS, NBC, TLC, TNT, and USA were deemed “adequate”; and A&E and History trailed with “failing” grades.

Among broadcast networks, Fox (Empire, Glee) was found to have featured the highest percentage of LGBT-inclusive original programming hours (45.4 percent) in the period surveyed. The CW (Jane the Virgin, America’s Next Top Model) led in racial diversity of its LGBT characters, with 38 percent of impressions being made by people of color. And ABC (Grey’s Anatomy, Modern Family) produced the highest volume of LGBT-inclusive content, with 258.5 hours (32 percent of its original programming, down 2 percent from last year).

On cable, ABC Family (Pretty Little Liars, The Fosters) posted the highest-ever percentage of LGBT-inclusive programming for any network tracked in the NRI before, 74 percent. On the other end of the spectrum, A&E featured 8 percent LGBT-inclusive programming (up 2 percent) and History did not air “a single LGBT impression that GLAAD could identify” in 362.5 hours of programming.

Read the full NRI on the GLAAD website.