ordinance claimed to further public safety