cleanup rest of brackets