update the samples