worked on my delet function.