loss condition added.