finish doc finally