data to array