RPN modified