Index: trunk/psastro/src/psastroFixChips.c
===================================================================
--- trunk/psastro/src/psastroFixChips.c	(revision 41535)
+++ trunk/psastro/src/psastroFixChips.c	(revision 41536)
@@ -307,5 +307,6 @@
         obsChip->toFPA   = toFPA;
 	// NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places
-        obsChip->fromFPA = psPlaneTransformInvert(NULL, obsChip->toFPA, *region, 50);
+	// WHY NOT?
+        obsChip->fromFPA = psPlaneTransformInvert(NULL, obsChip->toFPA, *region, 50, 0);
         psFree (region);
 
Index: trunk/psastro/src/psastroModelAdjust.c
===================================================================
--- trunk/psastro/src/psastroModelAdjust.c	(revision 41535)
+++ trunk/psastro/src/psastroModelAdjust.c	(revision 41536)
@@ -124,5 +124,5 @@
 	// invert the new fromFPA transform to get the new toFPA transform
 	// NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places
-	psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50);
+	psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 0);
 	psFree (chip->fromFPA);
 	chip->fromFPA = fromFPA;
@@ -146,5 +146,5 @@
     psFree (output->fpa->fromTPA);
     // NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places
-    output->fpa->fromTPA = psPlaneTransformInvert(NULL, output->fpa->toTPA, *fpaRegion, 50);
+    output->fpa->fromTPA = psPlaneTransformInvert(NULL, output->fpa->toTPA, *fpaRegion, 50, 0);
 
     // the model now describes the unrotated focal-plane
@@ -195,5 +195,5 @@
 	// the region used here is the region covered by the chip in the FPA
 	// NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places
-	psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50); 
+	psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 0); 
 	psFree (chip->fromFPA);
 	chip->fromFPA = fromFPA;
Index: trunk/psastro/src/psastroMosaicAstrom.c
===================================================================
--- trunk/psastro/src/psastroMosaicAstrom.c	(revision 41535)
+++ trunk/psastro/src/psastroMosaicAstrom.c	(revision 41536)
@@ -296,9 +296,7 @@
     psRegion fitRegion = psRegionSet (xMin, xMax, yMin, yMax);
 
-    // psPlaneTransformInvert will generate a new fromTPA with order to match toTPA
+    // psPlaneTransformInvert will generate a new fromTPA (order increased vs toTPA)
     psFree (fpa->fromTPA);
-    psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4);
-    fpa->fromTPA = psPlaneTransformInvert (myPT, fpa->toTPA, fitRegion, 100);
-    psFree (myPT);
+    fpa->fromTPA = psPlaneTransformInvert (NULL, fpa->toTPA, fitRegion, 100, 4);
 
     psFree (fpa->toSky);
Index: trunk/psastro/src/psastroMosaicCorrectDistortion.c
===================================================================
--- trunk/psastro/src/psastroMosaicCorrectDistortion.c	(revision 41535)
+++ trunk/psastro/src/psastroMosaicCorrectDistortion.c	(revision 41536)
@@ -62,7 +62,5 @@
 
     psFree (fpa->fromTPA);
-    psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4);
-    fpa->fromTPA = psPlaneTransformInvert(myPT, fpa->toTPA, *region, 50);
-    psFree (myPT);
+    fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, *region, 50, 4);
     psFree (region);
 
Index: trunk/psastro/src/psastroUtils.c
===================================================================
--- trunk/psastro/src/psastroUtils.c	(revision 41535)
+++ trunk/psastro/src/psastroUtils.c	(revision 41536)
@@ -111,5 +111,5 @@
 
     psFree (chip->fromFPA);
-    chip->fromFPA = psPlaneTransformInvert (NULL, chip->toFPA, *region, 50);
+    chip->fromFPA = psPlaneTransformInvert (NULL, chip->toFPA, *region, 50, 4);
     psFree (region);
 
