Those who have survived skin cancer don’t want to get it again, which likely makes them more vigilant about the state of their flesh. And a new study shows that vigilance can be life-saving.

For the study, published in the May issue of the Journal of the American Academy of Dermatology , researchers looked at more than 900 cases of melanoma reported through the Health Professionals Follow-up Study. They found that men with a history of nonmelanoma skin cancer were less likely to die of melanoma than those without a history. The research was led by Jiali Han, a professor and chair of epidemiology at the Indiana University Richard M. Fairbanks School of Public Health in Indianapolis.