document complexity