delete unnecessary code and add tof.h