a safety is used for preventing a gun from firing