update referebce document