 
 //moves 72 degree to select next warehouse
 void moveOneStep(){
+  
   for(int i = 0; i < step72; i++){
-    for(int j = 0; j <= 7; j++){
+    for(int j = 7; j >= 0; j--){
       digitalWrite(roPin1, seq[j][0]);
       digitalWrite(roPin2, seq[j][1]);
       digitalWrite(roPin3, seq[j][2]);

#define    trayLimit    A4
#define    upLimit      A5

#define    releaseBillDelay 1000 //to wait untill bill released
#define    getBillDelay     1000 //to wait until bill catched for sure
#define    upStepperDelay   3    //to wait before up/down steps
#define    roStepperDelay   10   //to wait before rotation steps

void hardwareDispense(){
  int bills[4];
  int total = 0;
  for (int i = 0; i<4; i++){
    while(Serial.available() <= 0){ //wait until RPI sends voltage on serial buffer
    }
    serialData = Serial.read(); //get the desired count from serial
