found another boolean optimization