add parenthesis to NOT and BOOL results