update main_t.cpp