improve find close brace