loss condition added