remove attributes and ignore