all cor fns are now cor_fn to use same parameters