do you need `end` after document()? could there be anything else or more? if so, you should update the "single source" example as well to add the end() call.