improve clarity of logic parentheses