solve the problem of switch from RPN to advanced