get version from the documents