prevent circular access in document