update for pid