replaced exception with array_slice on footer[]