fixing formula paren mismatch