cleanup unused attributes