upadte the samples