reordering directories path