use $document