made it so the path rearranges the path to be correct now