have to slice the data to get the array