modify the samples