 #define pinStepY         6      // PIN STEP FOR Y
 #define pinDirY          5      // PIN DIRECTION FOR Y
 
-#define pinStepY         8      // PIN STEP FOR Y
-#define pinDirY          7      // PIN DIRECTION FOR Y
+#define pinStepZ         8      // PIN STEP FOR Y
+#define pinDirZ          7      // PIN DIRECTION FOR Y
 
 #define Z_POSITION       9      // PIN FOR THE DIGITAL INPUT FOR THE HEAD POSITION
 

// PID
unsigned long previousMillisX = 0;
unsigned long previousMillisY = 0;
long                    intX  = 0;
long                    intY  = 0; 


  		{
  			if(!xok) 
  			{
  				Serial.println("STAT x1");
  				xok = true;
  				delay(2000);
  			}
