updated deletion functions