- # remove ssid if present on spotter
- $spot[4] =~ s/-\d+$//o;
-
- # add the 'dxcc' country on the end
- my @dxcc = Prefix::extract($spot[1]);
- push @spot, (@dxcc > 0 ) ? $dxcc[1]->dxcc() : 0;
+ # remove ssids if present on spotter
+ $out[4] =~ s/-\d+$//o;
+
+ # add the 'dxcc' country on the end for both spotted and spotter, then the cluster call
+ my @dxcc = Prefix::extract($out[1]);
+ push @out, (@dxcc > 0 ) ? $dxcc[1]->dxcc() : 0;
+ @dxcc = Prefix::extract($out[4]);
+ push @out, (@dxcc > 0 ) ? $dxcc[1]->dxcc() : 0;
+ push @out, $spot[5];
+