remove unused attributes