added rpn to prep