Safety is always a top priority for parents heading into Halloween – a holiday that can be all tricks and no treats for some.

One Southern California city was ranked among the top ten “safest” cities for trick-or-treating this year, according to a study from Chamber of Commerce, a website aimed at helping small business owners and entrepreneurs.

Researchers analyzed multiple safety factors across 300 U.S. cities, with a population of 100,000 or more, to determine which areas were considered safe for trick-or-treaters.

Among them were the number of pedestrian fatalities, violent crime, property crime, number of registered sex offenders, and number of law enforcement employees per 10,000 people.

The safety factors, each worth 20 points, were graded on a 100-point scale, with 100 representing the “safest” place for kids to go trick-or-treating.

A total of five California cities were ranked toward the top.

Residents in Orange County won’t have to travel far to ensure their kids stay safe while enjoying the spooky holiday since Irvine was ranked as the 10th safest city for trick-or-treaters, according to the report.

These California cities are the “safest” for trick-or-treaters:

10th: Irvine in Orange County: Total score 75

12th: Glendale in Los Angeles County: Total score 74

18th” Carlsbad in San Diego County: Total score 70

21st: Murrieta in Riverside County: Total score 69

22nd: Sunnyvale in Santa Clara County: Total score 67

Naperville, Illinois, was considered to be the safest city for trick-or-treaters nationwide.

The complete study can be viewed here.