changed tree structure because of path finding. Need fix