finaliize 适应function和table