fixed comparison operator usage