converts data to array of arrays