updating delete function