update sample.