remove is_leaf