Modify a sample