Sleeping with your ex can be like playing with fire. But a University of Arizona study of 137 adults says it might not always be bad for you. For those who didn’t want to break up in the first place, steering clear of their ex left them just as unhappy as trying to keep up a friendship.

But shockingly, they were happier if they were still having sex with their ex! Experts think it might be a case of taking what you can get.

But think twice before you dial up those old flames. Eventually you’ll have to move on.

Try working through the pain in a yoga class instead, or pour your love into social service organizations. Treating yourself well is the best way to bounce back.

MORE: Read More About The Sex With Your Ex Study