update for rest