remove redundant brackets