fixing both cdf and cdd