remove redundant list brackets