determine if comparitor only works for equal and not less or greater