fix bug: get_ref and get should be const member function