change: change crf to functions