misunderstood use of second array_shift command