path 1d program