insert document finished