$document is never used