clean up excess attachments