Index: /branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/MosaicOps.c
===================================================================
--- /branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/MosaicOps.c	(revision 36570)
+++ /branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/MosaicOps.c	(revision 36571)
@@ -270,10 +270,17 @@
     for (j = 0; j < host->Nimages; j++) {
 
-      int Nim = host->imageSeq[j];
-      if (Nim 
-
-      int mos = mosaic_for_images[Nim];
-
-    }
-
-}
+      int im = host->imseq[j];
+      
+      if (im < 0) abort();
+      if (im >= Nmosaic_for_images) abort();
+
+      // search for the mosaic that 
+      off_t mos = mosaic_for_images[im];
+      if (mos < 0) return NULL;
+
+      // &mosaic[mos];
+      // XXX do what?
+    }
+
+}
+
Index: /branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/assign_images.c
===================================================================
--- /branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/assign_images.c	(revision 36570)
+++ /branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/assign_images.c	(revision 36571)
@@ -57,4 +57,5 @@
     regionHosts->hosts[i].NIMAGE = D_NIMAGE;
     ALLOCATE (regionHosts->hosts[i].image, Image, regionHosts->hosts[i].NIMAGE);
+    ALLOCATE (regionHosts->hosts[i].imseq, off_t, regionHosts->hosts[i].NIMAGE);
   }
 
@@ -129,5 +130,5 @@
     off_t Nsubset = regionHosts->hosts[i].Nimage;
     regionHosts->hosts[i].image[Nsubset] = image[j];
-    // regionHosts->hosts[i].line_number[Nsubset] = j;
+    regionHosts->hosts[i].imseq[Nsubset] = j;
 
     regionHosts->hosts[i].Nimage ++;
@@ -253,3 +254,2 @@
   return -1;
 }
-
