delete function is working