The Crazy Ex-Girlfriend co-creator will guest star in the first episode of the comedy’s fourth and final season. “I play a prosecutor,” Brosh McKenna tells EW. “I got to participate in picking out a pretty fabulous outfit. I had two lines or three lines and a bunch of looks and it was really exhausting so now I really appreciate the actors even more.”

Although we’re not sure exactly how Brosh McKenna’s prosecutor will play into the episode — could it have to do with Rebecca’s current stint in jail? — we do know that the role was the idea of Brosh McKenna’s fellow co-creator Rachel Bloom. “Rachel is my stage mother, always trying to get me to perform in shows and act,” Brosh McKenna says. “She’s always wanting to put me out there in a great way so it was fun.”