1. finish modal for tcm infer