update the sample.