cleanup attribs