Are Four 74HC595 Sift-registers in a row too many?

Hi Guys,

sorry but I really don't get something fundamental here. So I was trying with basically just entering "0000 0001" to SPI.transfer(); to see if that works, it didn't.
Then I tried some others and e.g. the code below sometimes shoots of the first, sometimes the 9th, sometimes the 25th....even though it shouldn't even start the function, should it?
What do I not get here?

Thanks...

#include <SPI.h>

int ss = 10;

void setup() {

  pinMode (ss, OUTPUT);
  SPI.begin();
//  SPI.setBitOrder(MSBFIRST);
  
}

void loop(){
  for(int i = 0; i < 0; i++){
    sendToRegister(0);
    delay(2000);
  }
}

int sendToRegister(int valueForSolenoid) {

  digitalWrite(ss,LOW);
  SPI.transfer(valueForSolenoid);
  digitalWrite(ss,HIGH); 
  
}