document ref improvement