first version analysisSample with merging of datasets