Updated

Sofia Vergara has an interesting workout motto; “No pain – no cake!” The Colombian beauty who is on the cover of November’s issue of Shape confessed to the magazine that she is “obsessed” with cakes and is considering hypnosis to cure her of her sweet tooth.

The 42-year-old actress had always been happy with her shape until she hit the big 4-0 and started seeing, “a softness everywhere on my body…I knew it was time to do something, so I did,” she said.

So the “Modern Family” actress began using a Pilates-like machine called the Megaforma which has springs and pulleys. “With this machine, I was able to figure out what worked for me. I don’t love it at all, but I love how my body’s changing,” she said.

Another big inspiration was her co-star Julie Bowen who is an avid runner and even runs on days when the cast has an early morning call unlike Vergara who will use any excuse to skip a workout.

“Being around Julie and seeing how motivated she is … I started to think more about it,” she explained.

More On This...

    Since moving to Los Angeles nearly ten years Vergara has also changed the way she eats noting that, “you can’t always order the high-fat dishes like pasta with truffles. You have a little sushi, and when you’re out with your girlfriends you order a nice salad.”

    Still that’s not to say that the curvy actress doesn’t partake. “When I do indulge, I exercise a bit harder the next day,” she noted.

    WATCH: Four4Four: '7th Heaven' star molest scandal deepens