changed the way links are written in the document