remove trailing brace