How to extract the data from a 2D array branch