selection of the path pair