it deletes now but need to improve