separated operator and operands in stack and queue