delete some useless attributes and imports