clean up attributes