update for error code