In a new interview, Once Upon a Time‘s Lana Parrilla reveals why Regina learned magic and what we can expect in tomorrow’s scary episode “The Doctor.”

Speaking to TV Guide, Parrilla reflects on what we’ve learned about Regina this season, and why she agreed to go with Rumpelstiltskin. She says, “She realizes that not all magic is bad and if she can use it for good, then maybe it’s OK to use it.”

Previewing “The Doctor,” another Regina-centric episode, Parrilla reveals, “You’ll see Rumplestiltskin teaching her magic, but she has a secret. She has an agenda of why she wants to learn the magic. It’s not to destroy anyone. It’s not to destroy her mother. It’s not to really hurt anyone because she doesn’t want to.”

Her agenda is, as the promo hinted at, to bring back her true love Daniel from the dead. She’ll enlist Jefferson’s help to do it, and we’ll see a “little bit” of why Regina came to hate him so much that she’d later leave him in Wonderland.

We also know that David Anders’ Doctor Whale will take a more prominent role in this episode, and if the sneak peeks are to be believed, he’ll have a very instrumental role in trying to bring Daniel back from the dead… in Storybrooke as well as in fairytale land.

Parrilla explains what is going through Regina’s mind when, in the present day, she starts to see Daniel’s ghost. She says, “A part of her thinks, ‘Is that a ghost? Is that him? That can’t be him! What the hell is he doing in Storybrooke? I know he’s dead!’ She saw her mother crush his heart. The minute you crush a heart, that’s it, there’s no bringing him back.” So in the episode, “She’s terrified. She doesn’t know if she’s losing her mind. It’s a time when she just keeps losing everything, from Henry to magic to power to now the curse has been broken. Maybe she’s just on the verge of snapping, so that scares her.”

We can’t wait to see Regina crumble a bit more around the edges! It should definitely be interesting. Once Upon a Time 2×05 “The Doctor” airs tomorrow night at 8/7c on ABC.