cleanup a few attributes