get_confidence and get_root working