optimize braces