Problem with nested for loops and servos

if you want the sequence
s2 s2 s2 s7 s2 s2 s2 s7 s2 s2 s2 s7 s2 s2 s2 s7 s5
use the following code:

void loop()
{
  for (int i = 0; i < 4; i++) { //S7 activates once then S2 activates 3 times and then S5 activates and it circles back to S7 it looks like i is not incrementing
    for (int j = 0; j < 3; j++) {
      s2 () ;
      delay(1000); // This delay is to allow for
    }
    s7 () ;
    delay(1000); // This delay is to allow for
  }
  delay(1000); // This delay is to allow for
  s5 () ;
}