5.8 modify the memeory error in TPTD,
further modification is expect since many serious bugs are discovered.
try v