document reference worked