delete unused attributes