trailing whitespace
consolidate Document mapping in one place