cleanup and attribution