removed static ref to document