remove redundant attributes