splitting joining array

plot and joined array, no bugs