deletion of useless attributes