remove base_visitor reference