restrict use of some logic functions