check function for tree crf added