fix the braces in formula