delete duplicated parenthesises