remove misc brackets