remove superfluous parentheses from conditions