add boolean patterns