rename some variables in pathfinding algorithm