update sample settings