reference document through global