States have police powers granted by the Constitution. They may also enact regulations that are no more strict than federal regulations. They may also preempt local ordinances. California and New Jersey have comprehensive noise codes that communities must meet. Many states required that local ordinances be no more strict than the state code whether such code exists or not. One relatively common preemption is protection of shooting ranges from noise regulation or litigation and right to farm laws that protect agricultural areas from nuisance litigation by encroaching residential areas.