exchange the position of level and prefix