attribute clean up