remove redundant attrib