correctly adds the revisions to the references