check d is null