remove some redundant brackets