update for error processing