modify BTPT.cpp