interchanges docs and doc variables