removes extra bracket