 
     stepperZcurrPosition = tablezsteps + 6400;
  
-    //moves a little off switch
-    stepperZdestPosition = tablezsteps -30000;        
+    //moves to zero
+    stepperZdestPosition = 0;      
+    lastz = 0;
     while (stepperZdistanceToGo() != 0) {
       stepperZrun();
     }   

      }
    }
    
    stepperXcurrPosition = -1000;
    //moves a little off switch (0)
    stepperXdestPosition = tablexsteps;
    while (stepperXdistanceToGo() != 0) {
      stepperXrun();
    }
    Serial.print("{ \"log\" : \"X axis zero success\"}");
    ////////////////////////////////////////////////////////////// Y TABLE FRONT BACK
    Serial.print("{ \"log\" : \"Attempting to zero Y axis\"}");   

double stepperXdestPosition = 0;
double stepperXtimer = 0;
int    stepperXtoggle = 0;
double stepperXspeed = 110;

int motorpinYstep = 26;
int motorpinYdir  = 27;
