function crf1dc_sm_score() finished but not tested