prep_cdf to use new functions
term split refactored into two parts