make sure braces are even