first pass merged document