update for samples