update sample