simplify the path