In order to keep “it” up, you’d be wise to have another cup of coffee each morning. A team of researchers from the University of Texas Health Science Center found that men who drink two to three cups of coffee a day, are less likely to report that they have erectile dysfunction. 

According to the study, published in PLOS ONE, men who downed between 85 and 170 milligrams of caffeine a day were 42 percent less likely to report ED than those who had up to 7 milligrams. But more than that may not be better: Men who consumed between 171 and 303 milligrams of caffeine a day reported a 39 percent decrease in the likelihood of ED compared to the non-drinkers, which is still great, but not as good as those who had half that amount. 

Here’s why coffee works according to the researchers: The imminent caffeine rush following your cup of espresso relaxes the penile helicon arteries and the smooth muscle inside of the penis, increasing penile blood flow. Yup, sounds counterintuitive that caffeine has a relaxation effect, but that’s the gist.

If you’re off the caffeine, try these six sex-boosting foods instead.