update document reference