rewrote geometry-to-path