boolean comparison modified