ref_impl