merge ter_tex