delete unnecessary brackets