add compare operator