modify tc3.cpp