convert return structure into an array of outcomeVariable