change pathfunc