change delete to doDelete