attribute cleanup