compatibility with document level