cdf weighting complete, working on relative cdf