Modiefied Delete Function 2