fixed cdf lookup functionality