rebuild the path