so for SP, you're joining everything but the first element, and for SE you're joining everything but the last. This only works correctly for 2 element arrays.