will find paths along x-direction