refine the safety rules