add error lines for deleteObj