push @{$resultsByCode[$resultStatus[$_]]},$_ for 0..5;