change error law, now simpler