finish the doc