revise sample arith parser