compare operator code simplification.