fixed binary comparison