added path_back() to trace a path