fixed comparison operators to fit with p. 433