solve simplify path