update for random