fixed boolean caps and brackets