reimplement delete other paths
when path is seen, delete its other paths