second versio minimax_risk