Improved declaration of comparisonOperator