implmented first robustness measure.