removing unused attributes