fix for boolean functions