modify samples