construct the path