references added to every document