reference sharing mechanism