fixed compare operator