my $fh = defined $hash{$ita}[0] && defined $hash{$ita}[1] ? $out : $out1;