path apply