By Erin Strecker
July 18, 2013 at 07:47 PM EDT
Carlo Allegri/AP

It’s a happy ending for Adam Pally after all: The actor will guest-star on The Mindy Project this season, EW has confirmed.

In a multi-episode arc, the Happy Endings alum will play a new doctor at the OB/GYN practice where Mindy and the others work, according to TVLine, who first reported the news.

He’s not the only new doctor for Dr. Lahiri to embarrass herself around this fall: James Franco will play a model-turned-doctor on the first two episodes of the show’s second season. How can we drop by that hospital?

The Mindy Project will return Tuesday, September 17, at 9:30 ET.