inherit dimnames
removing duplicates