added trace a path back

Added trace a path back.