Index: trunk/Ohana/src/opihi/dvo/skyregion.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/skyregion.c	(revision 40576)
+++ trunk/Ohana/src/opihi/dvo/skyregion.c	(revision 40581)
@@ -186,10 +186,11 @@
   list->regions[Nout] = input->regions[0];
   list->filename[Nout] = input->filename[0];
+  Nout ++;
 
   for (int i = 0; i < input->Nregions; i++) {
-    if (list->regions[Nout][0].index == input->regions[i][0].index) continue;
-    Nout ++;
+    if (list->regions[Nout-1][0].index == input->regions[i][0].index) continue;
     list->regions[Nout] = input->regions[i];
     list->filename[Nout] = input->filename[i];
+    Nout ++;
   }
   list->Nregions = Nout;
@@ -249,8 +250,8 @@
     // scan over the remaining points to find any that lie within these regions
     // if we sorted the ra,dec inputs we could break out of this more quickly
-    for (int j = i + 1; j < Npts; j++) {
+    for (int j = i + 1; FALSE && (j < Npts); j++) {
       ra = RA->elements.Flt[j];
       dec = DEC->elements.Flt[j];
-      for (int n = 0; !found[j] && (n < new->Nregions); n++) {
+      for (int n = 0; n < new->Nregions; n++) {
 	if (ra  < new[0].regions[n][0].Rmin) continue;
 	if (ra  > new[0].regions[n][0].Rmax) continue;
