added validate_operand method