added goodness functions including cdf