switch path order