Removing useless attributes