please refrain from `that` as variable names, just use `document` or `doc`