Replacing all the pathCloseTo