change delete to doDlete