what is margin of safety