removes brackets from list