Legal changes to help bankrupts, spur prudence