uses doc_version as a variable