missed a couple places for passing in the doc rather than the pdf