remove parenthesises and dups