terminal path order