improve brace completion