fixed open end brace mismatches