Help with codes to add 1 more shift register and add more to matrix LED

hi Im currently working on a 8x10 matrix leds and was successful at it using this guide

using 4017 and 74hc595

now i want to expand my matrix to 16x10.

i connected it and it worked i added another 74hc595 to control the second 8x10.

my problem now is that i want to display text using both 8x10

im using the code from the guide and modified it to what i think but doesnt work

#define someshape    {B0100001001000010,B1110011101000010,B0100001001000010,B0000000001000010,B0001100001000010,B0001100001000010,B1000000101000010,B1000000101000010,B0100001001000010,B0011110001000010  }   
#define all     {B1111111111111111,B1111111111111111,B1111111111111111,B1111111111111111,B1111111111111111,B1111111111111111,B1111111111111111,B1111111111111111,B1111111111111111,B1111111111111111  }                        
#define someshape2   {B0100001001000010,B1110011101000010,B0100001001000010,B0000000001000010,B0001100001000010,B0001100001000010,B1000000101000010,B1000000101000010,B0100001001000010,B0011110001000010  }   

int DataPin = 9;
int LatchPin = 11;
int ClockPin = 10;

int DataPin2 = 2;
int LatchPin2 = 3;
int ClockPin2 = 4;
                     

const int numPatterns = 2;//this is the number of patterns you want to display
byte patterns[numPatterns][10]={all,all};// the patterns order
void setup(){
  pinMode(DataPin,OUTPUT);
  pinMode(ClockPin,OUTPUT);
  pinMode(LatchPin,OUTPUT);
  pinMode(DataPin2,OUTPUT);
  pinMode(ClockPin2,OUTPUT);
  pinMode(LatchPin2,OUTPUT);
  //simple stuff here
 pinMode(clock,OUTPUT);
  pinMode(Reset,OUTPUT);
  //reseting the 4017 IC, you have to do this
 digitalWrite(Reset,HIGH);
  delayMicroseconds(5);
  digitalWrite(Reset,LOW);
}

void display_pattern(int loops)//int loop acts like a delay, it take 8 mSecands to scan all of the rows so int loops = 15 is a good time for it
{ 

  for(x=0;x<numPatterns-1;x++){ // loop over the patterns
   for (int z=0;z<16;z++){ //scrolls one bite at a time 
    for(int t=0;t<loops;t++){// the delay we get with loops
     while(1){
     for(y=0;y<10;y++){// loops over the array of bytes


     byte temp = patterns[x][y]; 
     byte temp_2=patterns[x+1][y];
     

     
      digitalWrite(LatchPin, 0);
      shiftOut(DataPin, ClockPin,MSBFIRST,((temp<<z)+(temp_2>>7-z)));//writes digital outputs, Z is for how much bites it need to scroll
      digitalWrite(LatchPin, 1);
      delayMicroseconds(800);
      digitalWrite(LatchPin, 0);
      shiftOut(DataPin, ClockPin,MSBFIRST,0);
      digitalWrite(LatchPin, 1);
      digitalWrite(clock,HIGH);
      digitalWrite(clock,LOW);

     byte temp = patterns[x][y+8]; 
     byte temp_2=patterns[x+1][y+8];
     
      digitalWrite(LatchPin2, 0);
      shiftOut(DataPin2, ClockPin2,MSBFIRST,((temp<<z)+(temp_2>>7-z)));//writes digital outputs, Z is for how much bites it need to scroll
      digitalWrite(LatchPin2, 1);
      delayMicroseconds(800);
      digitalWrite(LatchPin2, 0);
      shiftOut(DataPin2, ClockPin2,MSBFIRST,0);
      digitalWrite(LatchPin2, 1);
      digitalWrite(clock,HIGH);
      digitalWrite(clock,LOW);



   }
   }

  }
 }
}
}


void loop(){
 display_pattern(15);// calls for the display_pattern function and says that int loop = 15(if you do more loop the pattern whould scrrol slower).
}

problem 1 is for sure im doing declaration of the bytes wrong.

i tried this code using the original but the outputs is given to 2 shift register so it would be identical but no luck

knox41234: doesnt work

In what way does it not work?