How patient safety measures lead to cost savings