Redo rp_prev without while loop