better parens optimization