added getOperator method