swapping exit to end/front in rpo/po