finish doc