fixed comparison issue