two-stage problem