bracket cleanup