remove redundant closing bracket