flatten sample list, directly use Sample object