extract path from tdch algorithm