convert merged data to array