On a list of the most dangerous cities for children, a few California cities weighs in as the worst.

To determind its rankings, Men’s Health Magazine used data of:

  • accidental death rates for kids ages 5 to 14 (Centers for Disease Control and Prevention);

  • number of car-seat inspection locations per child (National Highway Traffic Safety Administration);
  • sex offenders per capita (state and national registries);
  • percentage of abused children protected from further abuse (U.S. Department of Health and Human Services);
  • and the strength of child-restraint laws and bike-helmet laws (Insurance Institute for Highway Safety).

Bakersfield was given an F grade, ranking as one of the worst cities in accidental deaths. Only Jacksonville, New Orleans and Baltimore were the cities ranked worse.

Modesto also came in as one of the most unsafe cities with a grade of F and Fresno also landed in the bottom 10 most dangerous cities with a D- grade.

On the flip side, San Francisco was given an A grade and ranked third as one of the overall safest cities for children.